Without playing with the SCX, I'm out of ideas. I was thinking somewhere along the lines of:
Modify Form TestForm NoWait
aselobj(laTestForm,1)
oFormHandle = laTestForm[1]
oFormHandle.DataEnvironment.Objects.Add.....
However it seems the DataEnvironment just isn't available at design time. Can add during Init but that's not what you want. I'll keep scheming though. Just curious why not hack the SCX?
Aloha,
James
>Hmmm maybe, what I want it's to add a cursor programatically at design time, so, the final form should have a cursor added to the DataEnvironment, just like oneself does manually.
>
>
>Does it need to be visible during design time?
>
>>>No, it isn't. Any clue?
>>>
>>>>Is the new DataEnvironment class in VFP8 an option?
>>>
>>>>Aloha,
>>>
>>>>James
>>>>I'd like to Add a cursor to a DataEnvironment's form, without hacking the SCX table, is it possible?
>>>>I'm creating a Form, adding controls, writing methods, but i need to add cursor to the dataEnvironment...