Einzelnen Beitrag anzeigen

Benutzerbild von fkerber
fkerber
(CodeLib-Manager)

Registriert seit: 9. Jul 2003
Ort: Ensdorf
6.723 Beiträge
 
Delphi XE Professional
 
#2

Re: problem mit langen strings

  Alt 6. Jul 2006, 01:54
Hi!

Zitat von hier:
http://groups.google.de/group/borlan...465a2adfa7870e

Zitat:
I think you mean the problem assigning a long string to a variable at
designtime.Just split your string in multiple lines like this:

MyString := 'something very long...' +
'again something long' +
'the end';


This 255 character limitation is not a string limitation, it's only a delphi
editor limitation.

getestet und bestätigt:

Delphi-Quellcode:
text:='123456789012345678901234567890123456789012345678901'+
'23456789012345678901234567890123456789012345678901234' +
'5678901234567890123456789012345678901234567890123456789012345678901'+
'23456789012345678901234567890123456789012345678901234567'+
'89012345678901234567890123456789012345'+
'678901234567890123456789012345678901234567890123456789012'+
'34567890123456789012345678901234567890123456789012345678901'+
'2345678901234567890123456789012345678'+
'90123456789012345678901234567890123456789012345678901234567890'+
'12345678901234567890123456789012345678'+
'9012345678901234567890123456789012345678901234567890123456789012345678901234567890'+
'123456789012345678'+
'90123456789012345678901234567890123456789012345'+
'678901234567890123456789012345678901234567890123456789012345678901'+
'23456789012345678901234567890123456789012345678901234567890'+
'12345678901234567890123456789012345678901234567890';

Ciao Frederic
Frederic Kerber
  Mit Zitat antworten Zitat