Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memvars disappearing after page 1
Message
 
 
À
13/07/2001 09:07:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00529967
Message ID:
00530214
Vues:
12
>Hi Nadya:
>
>I think that was it. The memvars were declared in a .prg which called the report, but I had declared them as LOCAL. When I changed their declaration to PRIVATE everything seemed to work.
>
>Actually, my declaration worked even though I didn't declare my variables as public. Are they public by default?
>
>Thanks.

By default they are private. But I usually declare all variables and their scope explicitly (In VB I allways have Option Explicit set).
If it would be a form, you can declare your variables as local and this would work (though it's strange). In prg seems to be another story, so you better declare them as private. Actually, I have a vague idea, why we can use local in forms and should use private in programs, but it doesn't matter, we can just take it as a fact.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform