Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Only one example IndexSeek()
Message
De
25/07/2002 03:07:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/07/2002 19:43:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00681943
Message ID:
00682414
Vues:
30
>>If IndexSeek('NewId',.f.,'myTable','myTag')
>>messagebox('This ID already exists.')
>>endif
>
>
>Cetin, I was also looking for an example but then I tried including the logical value for move pointer and it worked.
>
>What confused me was the documentation in VFP 6:
>
>INDEXSEEK(eExpression [, lMovePointer [, nWorkArea | cTableAlias
> [, nIndexNumber | cIDXIndexFileName | cTagName]]])
>
>
>This implies to me that the lMovePointer value is optional. If it is not optional it seems like the syntax should be:
>
>INDEXSEEK(eExpression, lMovePointer [, nWorkArea | cTableAlias
> [, nIndexNumber | cIDXIndexFileName | cTagName]])
>
>Do you agree?
>
>Peter

Peter,
But it's optional. If table is selected and tag is ready then you might drop lMovePointer too. Syntax showing that if you want any parameter after lMovepointer then you should provide lMovePointer too, else optional.

ie:
select mytable
set order to tag myorder
*...
indexseek('myValue') && lMovePointer defaults to .f.


This one wrong :
indexseek('myValue',,'myTable') && VFP doesn't support this VBA like param. omitting

PS: There was a discussion about its behaviour. You might want to search.
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