Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Seek or not to Seek that is the question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00973540
Message ID:
00973556
Views:
21
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform