Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datasession
Message
De
22/07/2005 09:45:38
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01035024
Message ID:
01035099
Vues:
16
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform