General information
Title:
Remote views and incorrect getfldstate?
Hi,
does anyone know changes in getfldstate-function?
I have the following code, rvland is remote view with 5 fields, all updatable, parameter ID numeric:
USE rvland IN 0 SHARED NODATA
=CURSORSETPROP("Buffering",3)
m.idnr=500
DO datensatz
m.idnr=m.idnr+1
DO datensatz
*------------------
PROCEDURE datensatz
*------------------
id=0
=requery("rvland")
SELECT rvland
APPEND BLANK
replace landid WITH m.idnr
replace landsb WITH ALLTRIM(STR(m.idnr))
replace land WITH ALLTRIM(STR(m.idnr))
replace taggeld WITH m.idnr
replace nachtgeld WITH m.idnr
? "before: "+GETFLDSTATE(-1,"rvland")
BEGIN TRANSACTION
? "in1: "+GETFLDSTATE(-1,"rvland")
? TABLEUPDATE(0,.f.,"rvland")
? "in2: "+GETFLDSTATE(-1,"rvland")
END TRANSACTION
? "after: "+GETFLDSTATE(-1,"rvland")
In Visual Foxpro 6.0, the line ? "after .." returns 111111 two times (for record 500 and 501).
In Visual Foxpro 7.0, the line ? "after .." returns 111111 for record with id 500, and return 333333 for record with id 501.
If I insert a requery to the actual id before the line ? "after: ..", 111111 is returned for "after: .." for both lines.
Is this a change in getfldstate or is this a bug in Foxpro 7.0?
Bye,
-Andreas
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only