xsharp.eu • recno = -13
Page 1 of 1

recno = -13

Posted: Fri Jan 10, 2020 3:45 pm
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?

recno = -13

Posted: Sat Jan 11, 2020 7:31 am
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

recno = -13

Posted: Sat Jan 11, 2020 9:28 am
by Chris
Thanks guys, problem confirmed and logged: https://github.com/X-Sharp/XSharpPublic/issues/296

recno = -13

Posted: Tue Jan 14, 2020 3:04 pm
by robert
Fixed in next build

Robert