Comment Field With Linebreaks to TStringList?

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
Nicezia
Posts: 14
Joined: 2008-10-17 04:41:01

Comment Field With Linebreaks to TStringList?

Post by Nicezia »

Can you convert the comment field to a TstringList with the built in functions in the Scripting engine?

I'm trying to navigate through a list of Extra fields that i manage in the comments field and i haven't been able to figure out how to convert the comment field into a tstringlist it simply deletes formating when i copy it over to any variable, causing an error when i try to use the TstringList to navigate through it
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Re: Comment Field With Linebreaks to TStringList?

Post by bad4u »

Nicezia wrote:Can you convert the comment field to a TstringList with the built in functions in the Scripting engine?
Sure.

Code: Select all

  list := TStringList.Create;
  list.text := GetField(fieldComments);
Post Reply