Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function SEEK()
Message
 
À
18/01/2000 07:04:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00319354
Message ID:
00319377
Vues:
10
Hi:

You are probably not padding your variables.

Try,

LOCAL lcName,lcLastName,lcExpr

lcName = PADR(lcName,FSIZE("NAME","MyTable"))
lcLastName = PADR(lcLastName,FSIZE("LASTNAME","MyTable"))

lcExpr = lcName+lcLastName

IF SEEK(lcExpr,"MyTable","MyIndexTag")
WAIT WINDOW "FOUND"
ELSE
WAIT WINDOW "NOT FOUND"
ENDIF

HTH,

--Paul

>Hi alls
>I have a simple table.
>It has three fields: Name, Last Name and DNI and three common index; one with name other with last name and one with name+last name.
>
>When I make the search for name, It´s Ok.
>When I make the search for last name. It´s Ok.
>
>... But when I choice the compound index (name+lastname) and make a search it doesn´t work.
>
>What could be happening..???
>
>I consider the spaces mades for the texbox, for it I use Alltrim().
>
>TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform