dbTalk Databases Forums  

VFP 6: Table Buffering

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP 6: Table Buffering in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default VFP 6: Table Buffering - 07-11-2004 , 06:55 PM






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.

Reply With Quote
  #2  
Old   
Mark McCasland
 
Posts: n/a

Default Re: VFP 6: Table Buffering - 07-11-2004 , 09:28 PM






I think I still have these books at work. I will check it out Monday
when I get there and let you know.

Gene Wirchenko wrote:

Quote:
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.

Reply With Quote
  #3  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 6: Table Buffering - 07-11-2004 , 09:45 PM



Mark McCasland <mmccasla (AT) airmail (DOT) net> wrote:

Quote:
I think I still have these books at work. I will check it out Monday
when I get there and let you know.
That will be very much appreciated. I had misplaced my CD. I
just found it and tried using their code with the same result. Oddly,
further on, their CD code is quite different from the book.

[snipped previous]

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.