In a form, I wish to give the user the options of displaying and removing a second form containing a Text List Object. I have buttons, “Display a listing” and “Remove the listing”. This is the code that results from clicking either of them:
local a,b,c,d
getwindow a,b,c,d
if Button contains "display"
zoomwindow 23,b-500,c,d,"nopalette,noscroll"
openform "DataListing"
zoomwindow 23,b-500+d,c,1010,"nopalette,noscroll"
else
openform "DataListing"
closewindow
zoomwindow a,b,c,d,"nopalette,noscroll"
endif
The first zoomwindow
command shifts the current form left by 500 points to make room for the listing.
When I click on “Remove the listing”, the second block of code executes but the zoomwindow
statement in that block, designed to return the first form to its original location, is not effected. A message
after the zoom displays, so the procedure’s not stopping.
If I use numeric values instead of a,b,c,d
, it works, so it appears that the local variables are not being recognised, even though they were in the two previous zoomwindow
statements.