General information
Category:
Forms & Form designer
Title:
Help with weird popup problem FPD 2.6
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only