Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To Seek or not to Seek that is the question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00973540
Message ID:
00973556
Vues:
22
Glenn,
I don't understand what you think is the problem still.
This code should work in your example (it works with VFP6)
If !Seek(3,"test",juststem(cIDXIndexFileName))
	Messagebox('Not found')
Else
	MessageBox('Found')
Endif
The only thing I changed what to add juststem() to the 3rd argument of seek() and I changed the MESSAGE() to a MESSAGEBOX() in the ELSE statement. Maybe the MESSAGE() vs MESSAGEBOX() was the problem because it threw me off for a loop :)

Einar


>No cigar! I specified juststem(...) and still the problem. I am afraid the problem may be in the documentation or VFP engine (oh no!)
>
>Thanks
>
>Glenn
>
>
>>Hi Glenn.
>>
>>I think the problem is with cIDXIndexFileName. The SEEK already assumes this is an IDX, so the file name extension needs to be removed. Change your prg to
>>
>>cIDXIndexFileName = Substr(Sys(2015),2,8)
>>
>>and first SEEK in your code then works.
>>
>>Alan
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform