Fórum String to TString #197739
28/11/2003
0
alguem sabe se tem como e como eu faço para converter String em TString????????
valeu

Bysnaga
Curtir tópico
+ 2Post mais votado
03/12/2004
No caso vc está convertendo TStrings em String... para fazer o contrário, [b:1dc55da571]eh soh inverter a ordem de atribuição[/b:1dc55da571]...
1 2 3 4 5 6 7 8 9 10 11 | var s: String; sl: TStrings; begin sl := TStringList.Create; try sl.text := s; finally sl.Free; end; end; |
Até+
Paulo_amorim

Gostei + 2
Mais Posts
28/11/2003
Marcelo Saviski
Gostei + 1
03/12/2004
Anicetojunior
Gostei + 1
03/12/2004
Lucas Silva
Gostei + 1
14/05/2017
Roberto Rodrigues
Antes: erro de String e TString
Data.Append(Memo1.Lines);
Depois: sem erro
Data.Append(String(Memo1.Lines));
Espero que também funcione pra você, abraços.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)