General information
Category:
Coding, syntax & commands
Title:
Vfp6run, exe, vfp6 handle startup parameters differently?
I wanted to pass a parameter to my application at startup, using the vfp6runtime. But it doesn't work.
The entry point to my program is bcmain:
In my shortcut I tried:
c:\windows\system\vfp6run bcmain 0
**bcmain.prg
lparameters tcProgram
?type('tcProgram')
** when started from runtime as shown above, returns L - no matter what the parameter is, 0, "0", '0'
This is a problem for me, since I want to use the runtime in this environment, not always compile an exe.
However, when I compile to an exe, the type is returned as C, regardless of whether I use 0, "0", '0'
This I can live with, but I prefer it to understand the data type
do bcmain with "0" from command window, type is c
do bcmain with 0 from command window, type is n
This is fine of course
Can someone explain this behavior, or better yet, tell me if there is a way to pass a parameter to the startup program using the runtime?
TIA
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only