xsharp.eu • SEEK command on Integer type index tag
Page 1 of 1

SEEK command on Integer type index tag

Posted: Fri Aug 14, 2020 5:41 pm
by Loy2888
I searched this forum regarding this issue but it looks like no one has this issue reported yet.

Code: Select all

RddSetDefault("DBFVFP")

USE "TEMP.DBF" 
// This table is indexed on SERIES which is an integer. --> INDEX ON SERIES TAG SERIES

SET ORDER TO "SERIES"
SEEK 123      && ---> Throws an Error
SEEK "123"    && ---> Does not throw an error, but found() = .F.
LOCATE FOR SERIES = 123  && ---> Ok

SEEK command on Integer type index tag

Posted: Fri Aug 14, 2020 6:27 pm
by Chris
Hi Loy,

I wrote a small test and it seems to work fine here. Can you please post the dbf and index file? There could be something special about it causing the order to fail.

SEEK command on Integer type index tag

Posted: Fri Aug 14, 2020 8:37 pm
by Loy2888
Hi Chris,
See attached screenshot and a sample Temp.dbf file

SEEK command on Integer type index tag

Posted: Fri Aug 14, 2020 11:28 pm
by Chris
Hi Loy,

Thanks, indeed this shows the problem! Will log it for Robert to look into it.