Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strict typing...
Message
De
14/11/2001 14:26:14
 
 
À
14/11/2001 14:23:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00581332
Message ID:
00581705
Vues:
18
Correction: You cannot generate an error with the LanguageOptions setting, but can cause error output to go to the DEBUG OUTPUT window or to a file set with SET DEBUGOUT TO... It's all in the docs.

>Paul,
>
>You cannot enforce types in VFP, but can generate error output for undeclared variables in VFP7 with this setting:
>
>_VFP.LanguageOptions=1
>
>Look up the topic "LanguageOptions Property" in VFP7 help.
>
>>Is it possible to force VFP to strictly type variables and properties...for instance I can do this:
>>
>>local xyz as number
>>
>>xyz=""
>>
>>and it retains the string. I have to say that I would rather it gave me an error, preferably at design time.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform