>The DE has Cursor objects. So any table added to the DE at design time, or opened by adding the object to the DE at runtime can be accessed as objects, but only s far as the exposed properties of those objects goes.
>
>Following is some code that enumerates the cursors in the DE:
>
>=AMEMBERS(laList, THISFORM.DATAENVIRONMENT, 2)
>IF ALEN( laList,1 ) > 0
> FOR i = 1 TO ALEN(laList,1 )
> loObj = EVAL("ThisForm.DataEnvironment."+laList[i])
>* Do something here with your object reference
> ENDFOR
>ENDIF
Thanks Erik,
I didn't realize I can add my table to the DE at run-time. That solves the problem.
BTW, are the cursors open in a DataSession objects?
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!