Occasionally, when I am very bored, I sometimes have a look in the help file for things that I am not familiar with. That is how I learned about Trace.
Trace is very cool in that it allows you to both comment your code and have those comments appear in the Script Execution dialog. It also supports variable use.
So, I could have a script like this:
For i = 1 to 10
From File$(i).qvd (QVD);
In the past, I may not have been exactly sure where in the look I am without having to physically count the entries in the Script Execution dialog. Now, I can add a trace into the loop:
Trace Loading from file: File$(i).qvd;
And it will appear in the Script Execution like:
Loading from file: File1.qvd
What's more, it also appears in the script execution log file (you have to turn that on in the Document Properties - General - Generate Log File).
I wonder what interesting things that you might find in the help file?