Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SEEK() in a cursor
Message
De
12/04/1999 08:14:08
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
12/04/1999 07:28:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00207375
Message ID:
00207385
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform