Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FPD26 Screen not refreshing correctly
Message
From
05/09/2003 08:56:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
FPD26 Screen not refreshing correctly
Miscellaneous
Thread ID:
00826368
Message ID:
00826368
Views:
67
OK, I've been mostly modifying screens of an older FPD26 program and creating newer VFP8 forms on newer apps so I haven't created one from scratch in FPD26 in a while. I'm hoping someone's memory is better than mine...

I have a screen in FPD26 that displays get fields using arrays. For instance, one get field on the screen is maca_line1(lncount). lncount begins at 1 when the screen is opened and displays the first record (item in the maca_line1 array) as it should. All of the controls display their values correctly intially.

The problem occurs when I click on the previous or next or add button. For instance, the next button changes the value of lncount to 2 and then issues SHOW GETS. This should then display maca_line1(2). However, I still see on the screen the values from the first element in all of the arrays. I can verify that the value of lncount is indeed 2 now though.

Here is the code snippet from the valid of the next button on the screen:
IF lncount + 1 <= ALEN(maco_fname,1)
    *--Ok to move to next array row
    lncount = lncount +1
ELSE
    *--Display message this is the last contact
ENDIF
SHOW GETS 
RETURN
I verify that the value of lncount is now 2 and I verify that there are at least two rows in all arrays with data in them. There appears to be a problem with my show gets somehow. The display simply is not refreshing on the screen. What am I forgetting to do? Something in the show maybe?

Update: I put an @...say field on the screen to display the value of lncount and it refreshes as it should (changes its value to reflect the correct value of lncount when I click on the previous or next button). SHOW GETS is affecting the @...SAY field, but not the @...GET fields... why?
TIA!!!
:o)
Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Next
Reply
Map
View

Click here to load this message in the networking platform