Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locator Grid Class
Message
De
23/11/2004 11:27:29
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00963866
Message ID:
00963875
Vues:
8
>Hi Cetin,
>
>I'm using the grid locator class, I want to call the form & position on a particular record on the grid.
>
>HTMS
>
>Robin

Hi Robin,
I'm not sure I exactly understood. Do you mean you wan to call a form with a locatorgrid in it and when it shows up you want to be on a particular record? If so simply issue a locate with its recordsource selected. Below is a very basic sample:

-A form with a locatorgrid on it (default name LocatorGrid1)
-cSQL is set to "* from customer"
*Form init
lparameters tcLocateExpression
select (this.LocatorGrid1.RecordSource)
locate for &tcLocateExpression
Warning: No checking if tcLocateExpression is of char type etc.

Sample call:
do form myForm with "upper(contact) = 'B'"

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform