Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters for APP file
Message
From
17/02/2009 21:58:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01382551
Message ID:
01382556
Views:
32
>>I created an APP, and when running it with test data, I got an error, to the effect that no parameter statement was found. The LPARAMETERS statement was right there, in the Init() method of the form, which was defined as the main file.
>>
>>As a workaround, I created a PRG to receive the parameters and pass them on to the form; I suppose the form simply doesn't work this way, in an APP or EXE, but I was wondering whether I was missing something.
>>
>>Update: Oh, that's VFP version 9.
>
>I think it's always a good idea to use a main prg. I don't remember if it's related to this problem or not.

Well, I would also normally have used a main PRG - but this being a fairly simple utility (with a single form), I thought a main form would work. The workaround is not extremely complicated, but I find it somewhat clumsy to have a PRG which does absolutely nothing - except receive parameters and pass them on to the form! But that is the only way I could make it work.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform