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
ENDIF
SET DATASESSION TO (liDSIDOld)
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.