Registriert seit: 6. Apr 2005
10.109 Beiträge
|
Re: extract string from string
21. Mai 2007, 10:24
Hi,
have a look at NameValueSeparator:
Delphi-Quellcode:
begin
myString := 'Age:16' + sLineBreak + 'Name:molley' + sLineBreak + 'Country:Austria';
with TStringList.Create do
try
Text := myString;
NameValueSeparator := ':';
edit1.text := Values['Age'];
edit2.text := Values['Name'];
edit3.text := Values['Country'];
finally
Free;
end;
end;
Regards
|