Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datasession
Message
From
22/07/2005 09:45:38
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01035024
Message ID:
01035099
Views:
17
but... if I " set datasession to liAnotherDS " i got the error "cannot access the selecte table " and ... if I ignore the error everything seems going right....
MoreOver, if I try to access the form again I got no error. !!!!
Maybe some temporary cursor ??!!???



>Property DatasessionID on form is Read/Write. You can change its value in Load() or Init()
>
>Or You can use command SET DATASESION TO ...
>
>form::any_method(liAnotherDS)
>LOCAL liDSIDOld
>liDSIDOld=m.This.DataSessionID
>IF liAnotherDS>=0
>   SET DATASESSION TO liAnotherDS && Change DS
>ENDIF
>** any code
>
>SET DATASESSION TO (liDSIDOld) && Reset DS
>RETURN
>
>
>
>MartinJ
>
>>then? :-)
>>how can I impose a diferent datasession for that form ?
>>
>>>>but isn't the datasession property of a form available only at design time ?
>>>Yes datasession property of a form is available at design time and read-only at run time.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform