>how can i obtain the datasession number >because i want to do > > >set datasession to [number]
In the case that you're working with an object that doesn't want/need/can't reference all the way back to the form, you can use:
LOCAL nSession
nSession = SET("DATASESSION")
.
.
.
SETDATASESSIONTO nSession
One thing I learned the hard way is that if you change the datasession for any reason, be sure to put it back where you found it before you exit your method.