Thanks Viv, but that's correct at runtime, I'd like to do it at design time.
Any others ideas?
>Hi,
>>>
>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...
>>>
>I guess you mean 'to a form's Dataenvironment..'. Somewhere before the DE.OpenTables fires (DE.BeforeOpenTables() itself may be as good as anywhere):
>ThisForm.DataEnvironment.AddObject("MyCursor","Cursor")
>Then set the cursor objects properties as required. e.g.
>ThisForm.DataEnvironment.MyCursor.BufferModeOverride=5
>etc.
>Hope this helps,
>Viv