Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple Questions
Message
De
27/11/2002 10:46:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00727548
Message ID:
00727588
Vues:
11
>Hi,
>
>Could someone help me with these questions? Thank you.
>
>1. Is it OK to pass a Memo field as a parameter to a function?
>
>2. When declaring variables as Private, is it necessary that these variables be declared earlier in your program? (The FoxPro help information was a little confusing - 'Hides specified variables or arrays that were defined in a calling program from the current program.')

Undeclared variables are treated similar to "private" variables. For safety, you should declare your variables either as "private" or as "local", preferably "local" in most cases. "Private" hides identically-named variables of a higher level of procedure (that is, calling procedure), but makes the variable available to lower-level procedures (called procedures).

Hilmar.
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