Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameters for APP file
Message
De
17/02/2009 22:30:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01382551
Message ID:
01382564
Vues:
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.
>
>A form can be a main in an APP/EXE but it cannot accept parameters from outside. You've to use a PRG as an entry point.

That's certainly what it looked like - thanks for confirming it.
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform