Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find value in grid
Message
De
13/11/2002 13:21:57
 
 
À
13/11/2002 13:06:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00722243
Message ID:
00722253
Vues:
11
>hello
>
>i have a grid with three fields searchitem,beginitem,enditem.i want to find the begin and end items from another table and put in beginitem and enditem field.
>
>for example
>if user enter 10100 in searchitem it should display 10000,14000 in the beginitem and enditem.
>
>it get the data from header table where the structure is beginitem and enditem
>
>10000-14000
>14001-15000
>....
>
>txs for any input.

Create an index on beginitem and on enditem, and use LOCATE:

LOCATE FOR searchitem>= beginitem and searchitem <= enditem
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform