例如:#123423#hfei233#cnkdfk#fjhie8
如何的到 右方 第一个出现"#"的位置?

解决方案 »

  1.   

    像有这么一个函数来这,忘了是什么了
    大不了自己转换字符的位置然后再POs()了
    1234
    4321
    :)
      

  2.   

    你的意思是说c:\windows\system"\"xxxpath
                                ->
      

  3.   

    QStrings单元中有这个函数:
      Q_PosLastStr(区分大小写)Q_PosLastText
    2ccc.com有下
      

  4.   

    procedure TForm1.Button1Click(Sender: TObject);
    var s1 : array[0..255] of char;
        i,j : integer;
    begin
        s1 := '#123423#hfei233#cnkdfk#fjhie8';
        for i := 0 to length(s1) do
        if s1[i]='#' then
        begin
        j:=i;    end;
        self.Caption :='右边的第一个#在字符串第'+inttostr(j)+'位';
    end;
      

  5.   

    ansireplacetxt("#","|"
    extractpath()
    length