Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SEEK() in a cursor
Message
From
12/04/1999 08:14:08
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
12/04/1999 07:28:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00207375
Message ID:
00207385
Views:
14
>How do I reference the cursor for a grid to do a SEEK()?
>
>I have passed the reference to the column header in the grid to the SearchForm as oHeader. That part is working ok. I just can't seem to figure out the syntax.
>
>SET EXACT OFF
>=SEEK(ThisForm.Text1.Value, ThisForm.oHeader.????)
>
>Thanks

Assuming that the grid is based on a Cursor, with the cursorname as the Grid.RecordSource, then try

=SEEK(ThisForm.Text1.Value, ThisForm.oHeader.Parent.RecordSource)
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform