Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protecting dbfs within classes - like a private data ses
Message
From
24/02/1997 08:31:45
 
 
To
20/02/1997 14:13:29
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00019927
Message ID:
00021757
Views:
53
>>>>>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!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform