Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with weird popup problem FPD 2.6
Message
From
21/10/1998 16:20:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Help with weird popup problem FPD 2.6
Miscellaneous
Thread ID:
00149094
Message ID:
00149094
Views:
51
Hi all,

I am having a weird problem with a popup in FPD 2.6.
*---------------
Code in When of popup:

IF glReadOnly
RETURN .F.
ENDIF
luOldValue = loIndGru && loIndGru is index variable to popup
*----------------
Code in valid of same popup:

* First it sets some variables that depend on loIndGru
ccodgru = laplgru[loIndGru,1]
nRegHours = laplgru[loIndGru,2]

* If there has been a change and it is the first time this
* record has changed, Refesh navigation buttons
IF luOldValue # loIndGru AND !glRecordChanged
glRecordChanged = .T.
DO DimNavigat && This routine dims or highlights buttons in && navigation screen
ENDIF
*----------------

The problem is that _sometimes_ (not all the time) I make a change and by the time it gets to the valid both luOldValue and loIndGru have the new value of the index. It seems to happen more often after I do a relocation in table via a Function key.

I read in UT that somtimes Fox seems to get ahead of itself in fast machines. Could this be one of those cases? It is alo possible that somehow I am going twice through the when without going through Valid. Could this be the problem???

TIA,

Alex
Next
Reply
Map
View

Click here to load this message in the networking platform