Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Protecting dbfs within classes - like a private data ses
Message
De
24/02/1997 18:22:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00019927
Message ID:
00021878
Vues:
60
>>>>>>I don't know if this will work, but can you create a datasession in code? Seems to me I saw something like this in CodBook.
>>>>>>
>>>>>>Craig
>>>>>Thanks. My understanding is that a datasession is a form property. I'm not using a form here.
>>>>
>>>>A datasession is not a property, but is a class, and you should be able to create it in code.
>>>>
>>>>Craig
>>>
>>>Hi Craig,
>>>
>>> I think you may be getting DataSession and DataEnvironment mixed up. Codebook has a subclassed version of the DataEnvironment class, but as far as I know datasessions are associated to a form.
>>>
>>> BFN,
>>> Darrel Miller
>>
>>
>>Yup..I did. Have you looked at the SET DATASESSION command and the form's DataSessionID property?
>>
>>Craig
>>
>I actually found a solution in "The Revolutionary Guide to VFP OOP". They define a toolbar in code and then add a DataEnvironment object to it. You then open your tables there and set the data session to private (2). Works great! Great book!!!


I have that book, but don't remember that part...I'll pull it off the shelf and look at it.

Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform