I need to get a value returned from the Footer handler into my MouseUp handler. However the footer is called from the CreatPage handler. Is there an efficient way of doing this, or do I have to process the return in the create page and then return that returned value to the mouse up.
Code: Select all
command Footer tCardName, tPaperHeight, tPaperWidth
some processing
return (tFooter - 30)
end Footer
command CreatePage tPageNo,tPaperWidth,tPaperHeight
-------<Copy header and footer detail>-----------
Footer tCardName, tPaperHeight, tPaperWidth
put the result into tFooter
end CreatePage
on mouseUp
lock screen
-- deleted a lot of variables which set tPaperHeight, tPaperWidth etc.
-- I need the return value from Footer to go into tMaxPageBottom
put (tPaperHeight - 110) into tMaxPageBottom
CreatePage tPageNo, tPaperWidth, tPaperHeight
end mouseUp
Jalz