on Sep 7th, 2010, 2:56pm, Danny72 wrote:| Is it PRINT "'"@cmd$"'" just before the Main Loop |
|
At that point in the TEXTEDIT program the 'output window' is completely covered by the edit control. Therefore a PRINT statement inserted into the program, for debugging purposes, won't have a visible effect (it will be hidden behind the edit control)!
If you want to add a debugging line to your program I would suggest using a Message Box; that will display in front of the edit control so you will be able to see it:
Code: SYS "MessageBox", Hedit%, @cmd$, "Debug", 0
What this will show you is that @cmd$ contains the command-line parameter(s), if any, passed to your compiled program.
The main alteration that you will need to make to the TEXTEDIT program is to split PROCload into two parts: the part that prompts the user to select a file (which you want to bypass) and the part that actually loads the file (which you want to keep). Hopefully you can see how to do that.
Richard.