Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Add a Cursor to DataEnvironment programatically?
Message
From
05/02/2004 22:30:00
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00874222
Message ID:
00874697
Views:
15
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
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform