Re: Bizzare VFP behavior in network environment by Olaf
Olaf
Wed Apr 30 01:45:23 CDT 2008
Hi Zoom,
what kind of index did you create?
CDX or IDX?
If IDX this needs to be opened before
you can set order to it and seek in it.
If CDX and it's not the same name as the DBF
the same is true.
In these cases the index can be incomplete,
if that was not taken care of, thus you may
not find what you seek.
Also be aware that VFP seeks case sensitive, as
long as you don't use a collation sequence other
than MACHINE, which is the default.
try this:
* script a) Create an indexed table, add some data
cDir = "\\yourserver\yourshare\"
Create Table sometable (name c(20), description M)
Index On name Tag xName
Insert Into sometable Values ("zoom","take a detailed look")
Insert Into sometable Values ("Zoom","foxpro expert")
Use
* script b) seek in the table
cDir = "\\yourserver\yourshare\"
Select 0
Use (cDir+"sometable") in 0
Set Exact Off
Set Near Off
Seek "zoom"
If Found()
? sometable.description
Endif
If Seek("Zoom")
? sometable.description
Endif
Bye, Olaf.