Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DO FORM......NAME...LINKED
Message
De
29/05/1998 14:39:36
 
 
À
29/05/1998 14:37:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00102548
Message ID:
00103195
Vues:
36
>>I use it as long as I develop in VFP (and FP2.x). LOCAL variable is visible for its own snippet and all snippets called from there.
>>
>>>Ed,
>>>
>>>Have you tried that? LOCAL shouldn't be visible inside the report. Only private and public. I suggested public because private to a method might still go out of scope in a REPORT NOWAIT setup.
>>>
>>>>Yes I meant something like this, moreover, the example doesn't require PUBLIC, it can be LOCAL variable.
>
>This is odd Ed. According to the Help, LOCAL variables are visible only in the procedure or function they are declared in, not in those above or below the procedure. PRIVATE variables being visible in "lower" method calls. Since this works for you, can we conclude that a report run from a method is "part of" or "contained in" the method?

Do you believe in everything what is written in Help :). Following construction always worked for me:
Local cHeader
cHeader=....
Report Form .... && using cHeader inside
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform