Search found 7 matches

by dreamweaver
Sun Jun 05, 2011 7:39 pm
Forum: Scripting
Topic: Reading from / writing to files from within TGF
Replies: 1
Views: 11493

Reading from / writing to files from within TGF

It took me some time to read information from a CSV-text-file based on 'artist' and 'tilte'. Probably someone else wants to do something similar so I leave the script here. All in all TStringList is good for that purpose, but TStringList.IndexOf has some limitations. On the other hand regular expres...
by dreamweaver
Sun Jun 05, 2011 7:22 pm
Forum: Scripting
Topic: Debugging / Writing to file
Replies: 10
Views: 9104

Re: Debugging / Writing to file

Hi Dimitris,

debug mode ? Could leave a few lines on that, how do I ask for that dialog box?
by dreamweaver
Sun May 08, 2011 8:03 pm
Forum: Scripting
Topic: Debugging / Writing to file
Replies: 10
Views: 9104

Re: Debugging / Writing to file

It works like a charme now. Defining a variable named 'out' was probably not a very smart thing. I'm away from Delphi for some time now, but remembering basic C++ they have an out-stream class. And Delphi seems to have at least a reserved token 'out'. Nevertheless, renaming 'out' to something else d...
by dreamweaver
Fri May 06, 2011 7:55 pm
Forum: Scripting
Topic: Debugging / Writing to file
Replies: 10
Views: 9104

Re: Debugging / Writing to file

Hmm, doesn't really work. Seems it's not allowed to define a TStringList-object. When I I do something like ... // -------- begin ------- 10 var 11    sTmp: string;         ... 13    out: TStringList; 14 15 begin 16      out:= TStringList.Create;         ... // -------- end ------- ... then the scri...
by dreamweaver
Tue May 03, 2011 8:38 pm
Forum: Scripting
Topic: Debugging / Writing to file
Replies: 10
Views: 9104

Re: Debugging / Writing to file

TStringList looks interesting! I'll check that out during the next days, right now I don't have access to my little machine at home. Don't wast time to include AnsiStartsStr. I was just wondering which Delphi-functions are available. Is there a little README somewhere to get a hint which Delphi-func...
by dreamweaver
Mon May 02, 2011 6:07 pm
Forum: Scripting
Topic: Debugging / Writing to file
Replies: 10
Views: 9104

Re: Debugging / Writing to file

I'd like to - use Delphi-functions/procedures like AnsiStartsStr (StrUtils unit). - debug my script or to write values of variables to a local text file. Right now I'd try to write a little script (almost finished) to cut of "The " from the beginning of 'artist' and to preview the behavior of the sc...
by dreamweaver
Mon May 02, 2011 6:21 am
Forum: Scripting
Topic: Debugging / Writing to file
Replies: 10
Views: 9104

Debugging / Writing to file

Hi @all! I searched the scritps, helpfiles and the web but couldn't find an answer to this questsions: Is it possible to use Delphi-Units or to use godfahter-units from within delphi? Is there a possibility to debug the scripts or to at least open, write and close a simple text-file? Thanks for your...