Fórum String #375658
06/10/2009
0
Tenho essa string: \\Laptop\D:\Sistema\Fotos\063.jpg
Como faço para retirar somente esse : dessa string?
Pois uso um sistema que salva o path das fotos no banco de dados, mas quando mamdo ler essas fotos me da um caminho inexistente por causa desse :
Grato:
Jose Luiz
Jose Luiz
Curtir tópico
+ 0Posts
06/10/2009
Adilsond
procedure TForm1.Button1Click(Sender: TObject); var S: String; begin S := ´\\Laptop\D:\Sistema\Fotos\063.jpg´; Delete(S,Pos(´:´,S),1); ShowMessage(S); end;
Gostei + 0
06/10/2009
Steve_narancic
procedure TForm1.Button1Click(Sender: TObject); var S: String; begin S :=´\\Laptop\D:\Sistema\Fotos\063.jpg´; s:= stringreplace(s, ´:´,´´,[rfreplaceall]); ShowMessage(S); end;
Gostei + 0
06/10/2009
Marco Salles
C := ´\\Laptop\D:\Sistema\Fotos\063.jpg´; C:=stringReplace(C,´:´,´´,[rfReplaceAll, rfIgnoreCase]); Showmessage(s+13+C);
Gostei + 0
06/10/2009
Jose Luiz
Jose Luiz
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)