Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collections not possible in session classes why
Message
De
30/04/2005 10:29:01
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01008791
Message ID:
01009890
Vues:
12
>I trie to create a collection in a session based class; but this is not possible; I get an error.
>
>Could someone explain why?

Yes. The Session base class is designed for lightweight encapsulations of private datasessions. To achieve this, it does not support containership (ADD OBJECT, Addobject(), ...). If you need both private datasessions and containership, use Form instead. Ex:
DEFINE CLASS PrivateWithCollection AS Form
  DataSession = 2  && private DS
  ADD OBJECT SomeCollection AS Collection
ENDDEFINE
-- Randy
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform