Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Please explain this to me...
Message
De
16/04/1999 14:25:03
 
 
À
16/04/1999 06:58:00
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00208908
Message ID:
00209118
Vues:
25
Are you using VFP toolbars?

If so, keep in mind that toolbars can have their own datasessions and their use may take an active form's private data session out of scope.


>At start up I create an application object - oapp. In this object I have a method that operates on data- something like:
>
>if cust.type='Business'
> return something
>else
> return soemthing else
>endif
>
>which is manipulating data in an open table. If the form this is called from uses a private datasession then the method does not see the cust table. In other words, it appears that the oapp object is scoped to whatever datasession was active or the default when the object was created. Is this right or have I just messed up somewhere? If it is right, why was it designed this way? I am perplexed.
- Jeff
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform