![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am working out of "The Pros Talk Visual FoxPro 3". I am currently on the first report in the section "Section 5: Buffer and Transactions". I am getting different results than the text says on the example pp. 108-111. ISTR that I tried this back when I first got started in VFP and had the same problem then. I never did figure it out. If someone has the text, could you please point out what is going wrong? Everything works fine until p. 110: "Now save the rcord in a slightly different way to see how it works. Type = Rlock(). The contents of the Debug window are predictable. Edit the record by typing replace FIELD1 with 'test'. The Debug window should show the following: getfldstate(0) 1 getfldstate(1) 2 && field was edited getfldstate(-1) "121" FIELD1 "test " oldval('FIELD1') " " " I do not get these results. The previous display was: recno() 2 getfldstate(0) 3 getfldstate(1) 4 getfldstate(-1) "344" reccount() 2 FIELD1 " " oldval('FIELD1') .NULL. and the only difference from that is that FIELD1 is now "test ". I subsequently have troubles with the record count being one less than the example states. I am not sure if this is connected. Sincerely, Gene Wirchenko Computerese Irregular Verb Conjugation: I have preferences. You have biases. He/She has prejudices. |
#3
| |||
| |||
|
|
I think I still have these books at work. I will check it out Monday when I get there and let you know. |
![]() |
| Thread Tools | |
| Display Modes | |
| |