COPY(原字符串,开始的位置,取几个字符)=字符子串

解决方案 »

  1.   

    这些自己都可以从Delphi帮助中找到的,只要找到一些关于字符串操作,然后就可以顺藤摸瓜找到相关的一些函数。
      

  2.   

    COPY(原字符串,开始的位置,字符个数)=字符子串
    pos
    substr
    看帮助
      

  3.   

    function Copy(S; Index, Count: Integer): string;
    function RightStr(const AText: string; ACount: Integer): string;
    function LeftStr(const AText: string; ACount: Integer): string;
    procedure Delete(var S: string; Index, Count:Integer);
      

  4.   

    function Copy(S; Index, Count: Integer): string;
    function RightStr(const AText: string; ACount: Integer): string;
    function LeftStr(const AText: string; ACount: Integer): string;
    procedure Delete(var S: string; Index, Count:Integer);
      

  5.   

    function Copy(S; Index, Count: Integer): string;
    function RightStr(const AText: string; ACount: Integer): string;
    function LeftStr(const AText: string; ACount: Integer): string;
      

  6.   

    Copy('SourceString',1,6)
    结果是"Source"
      

  7.   

    只要用数组就可以了
    例如
    var a,b;string;
    a;=‘sdfsdf’;
    b:=copy(a,0,5)
    b就是'sdfsd'了copy(a,0,5)中
    0代表开始字符,
    5代表所要取得字符
      

  8.   

    上面的不够用,自己编写一个MySubString不就行啦!OK!