recno = -13

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

Post Reply
User avatar
kevclark64
Posts: 127
Joined: Thu Aug 15, 2019 7:30 pm
Location: USA

recno = -13

Post by kevclark64 »

Using the FoxPro dialect, my code is:

CREATE _tmpstructure
append blank

Checking the CurrentWorkArea data in the watch window, my recno for _tmpstructure is now -13 and the reccount is -13 as well.Obviously neither recno not reccount should be a negative number, so am I doing something wrong?
Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am
Location: Germany

recno = -13

Post by Karl-Heinz »

Hi Kevin,

it seems to be a "DBFVFP" driver issue, because when i use the "DBFCDX" or "DBFNTX" driver the results are ok.

Code: Select all

LOCAL i AS INT 


	i := 1

	
	DO CASE 
	CASE i == 1	
		RddSetDefault ( "DBFVFP")		

	CASE i == 2	
		RddSetDefault ( "DBFNTX")		
		
	CASE i == 3	
		RddSetDefault ( "DBFCDX")		 
		
	END CASE 


	CREATE _tmpstructure
	append blank
 
	
	
	// "DBFVFP" results are 4294967283 , -13 
	// otherwise 1 , 1
	
	? RecNo() , RecCount()

You should open a GitHub ticket to get it fixed.

regards
Karl-Heinz
User avatar
Chris
Posts: 4898
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

recno = -13

Post by Chris »

Thanks guys, problem confirmed and logged: https://github.com/X-Sharp/XSharpPublic/issues/296
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
robert
Posts: 4518
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

recno = -13

Post by robert »

Fixed in next build

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply