SEEK command on Integer type index tag

This forum is meant for questions about the Visual FoxPro Language support in X#.

Post Reply
Loy2888
Posts: 14
Joined: Thu Jul 30, 2020 5:46 pm

SEEK command on Integer type index tag

Post 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
User avatar
Chris
Posts: 4844
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

SEEK command on Integer type index tag

Post 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.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Loy2888
Posts: 14
Joined: Thu Jul 30, 2020 5:46 pm

SEEK command on Integer type index tag

Post by Loy2888 »

Hi Chris,
See attached screenshot and a sample Temp.dbf file
Attachments
Tempdbf.zip
(394 Bytes) Downloaded 68 times
error.jpg
error.jpg (41.48 KiB) Viewed 373 times
User avatar
Chris
Posts: 4844
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

SEEK command on Integer type index tag

Post by Chris »

Hi Loy,

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

XSharp Development Team
chris(at)xsharp.eu
Post Reply