[ ]
I have a screen that has two checkboxes on it that has been working perfectly for years.
Now I need to add another checkbox, but when I do I am getting a problem that is driving me nuts.
Basically, the NEW checkboxes, on first access, whether by mouse or tab, always call the same WHEN clause TWICE. On subsequent accesses the WHEN clause is only called ONCE. All of the OLD checkboxes work as expected only calling the WHEN clause once. I am at my wits end trying to fix this problem.
Here is a cut & pasted sample checkbox and when clause as generated by GENSCRN:
[blue]
@ 9.067,2.857 GET Sample ;
PICTURE "@*C3 Sample" ;
SIZE 1.417,9.833 ;
DEFAULT 0 ;
FONT "Geneva", 10 ;
STYLE "T" ;
WHEN _2bf115qcx()
[/blue]
[blue]
* *********************************************************
* *
* * _2BF115QCX Sample WHEN
* *
* * Function Origin:
* *
* * From Platform: Macintosh
* * From Screen: PARTINFO, Record Number: 132
* * Variable: Sample
* * Called By: WHEN Clause
* * Object Type: Check Box
* * Snippet Number: 2
* *
* *********************************************************
*
* This is sometimes called twice
FUNCTION _2bf115qcx && Sample WHEN
#REGION 1
test = 1
[/blue]
When I access the checkbox the code somehow calls this GET twice the first time, but only once on subsequent accesses.
Does anyone have any idea what is happening here? Or where I can look to find the problem?
mmerlinn
"Political correctness is the BADGE of a COWARD!"
I have a screen that has two checkboxes on it that has been working perfectly for years.
Now I need to add another checkbox, but when I do I am getting a problem that is driving me nuts.
Basically, the NEW checkboxes, on first access, whether by mouse or tab, always call the same WHEN clause TWICE. On subsequent accesses the WHEN clause is only called ONCE. All of the OLD checkboxes work as expected only calling the WHEN clause once. I am at my wits end trying to fix this problem.
Here is a cut & pasted sample checkbox and when clause as generated by GENSCRN:
[blue]
@ 9.067,2.857 GET Sample ;
PICTURE "@*C3 Sample" ;
SIZE 1.417,9.833 ;
DEFAULT 0 ;
FONT "Geneva", 10 ;
STYLE "T" ;
WHEN _2bf115qcx()
[/blue]
[blue]
* *********************************************************
* *
* * _2BF115QCX Sample WHEN
* *
* * Function Origin:
* *
* * From Platform: Macintosh
* * From Screen: PARTINFO, Record Number: 132
* * Variable: Sample
* * Called By: WHEN Clause
* * Object Type: Check Box
* * Snippet Number: 2
* *
* *********************************************************
*
* This is sometimes called twice
FUNCTION _2bf115qcx && Sample WHEN
#REGION 1
test = 1
[/blue]
When I access the checkbox the code somehow calls this GET twice the first time, but only once on subsequent accesses.
Does anyone have any idea what is happening here? Or where I can look to find the problem?
mmerlinn
"Political correctness is the BADGE of a COWARD!"