Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote views and incorrect getfldstate?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Remote views and incorrect getfldstate?
Divers
Thread ID:
00565575
Message ID:
00565575
Vues:
97
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform