I think I know what may be happening.
Try this:
bDistractor1Clicked := ~bDistractor1Clicked sDistractor1:= "Not Clicked" sDistractor1_Selected:= "" if bDistractor1Clicked then sDistractor1_Selected:= "Clicked" sDistractor1:= "" end if
Does this work?
"MORALES, RAMON [NCP/1555]" wrote:
> I ran the app with the Trace and by displaying the value of > the variable bDistractor1Clicked. Here are the results: > > Initial condition: bDistractor1Clicked = FALSE (shows on screen as 0) > > First click: > Trace shows the If bDistractor1Clicked = FALSE segment of the code > executing (this is correct). As a result, > bDistractor1Clicked = TRUE (shows on screen as 1). This is correct. > > Second click: Trace shows the else if bDistractor1Clicked = TRUE then > segment of the code executing (this is correct). > bDistractor1Clicked is still TRUE (shows on screen as 1). This > is wrong. The value should have toggled back to FALSE (0). > The Update Variable value is clicked on the display icon. > > All other clicks: The bDistractor1Clicked value remains TRUE and the Trace > shows the code being processed based on that value. The screen > continues to show a 1. > > That's what I got. The bDistractor1Clicked value is the flag. If you click > once, > it should turn to TRUE. If you click it again, it should turn back to FALSE. > Every click should reverse the current value of the variable. > > If I had any hair on my head, I would be pulling it out now.
-- The AWARE List http://www.e-media.nl/aware/index.html
Search the Archives http://www.e-media.nl/aware/search.html
Netiquette: - Use descriptive subject fields - Use subject prefixes (A5 , A5Mac , A5Web , KO , UCD , OT)