>When I get stumped like this with my code, I just pass the variable in as a parameter and take it from there.
do u mean to pass (as a parameter) the ds to method and then use that number to set ds to, like the following:
LPara ;
..., ;
nNewDSId
if set('datasession') <> nNewDSId
set datasession to &nNewDSId
endif
i've tried that in a previous test were i had the exact same problem - didn't make no difference. also, the '_screen.ActiveForm.DatasessionId' does return the correct ds (3 in this case).
so, i am correct in assuming that this (my code/idea from my original post) should work?!