Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic confusion
Message
De
15/12/1999 13:22:28
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00303899
Message ID:
00304195
Vues:
38
>>If the variable is declared as private, and initialized (or passed using the PARAMETERS statement rather than LPARAMETERS) in the code that calls the REPORT command, it will be visible to the report.
>
>George,
>
>I recently learned here that this is also true for LOCAL variables, the report can see those too.

This should have been obvious to me, but I got burned by this.

A simple example.

LOCAL A
A = 4
?A && SHOWS 4
DO B WITH A
?A && SHOWS 5

PROCEDURE B
LPARAMETERS A
A=5

The overriding fact is that your are passing by the variable by reference.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform