>>>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only