Options

How to emulate the CLOSE pushaction of a button in CAL??

bobyboby Member Posts: 78
Hello everybody,
I'm trying to close a form after some treatment generated by a push trigger on a button..
I saw in help that FORM.CLOSE is supposed to do so, but when I try the function, I get an error:"Undefined variable CLOSE.."

Strange :?: :?:

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Try CurrForm.CLOSE;
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    bobyboby Member Posts: 78
    Thank you Luc!!
    Can you explain me my error?
  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    The word FORM in the syntax FORM.CLOSE refers to an object of type Form.
    This can be a variable: eg. frmMyForm.CLOSE or if you want to close the current form, you use CurrForm.CLOSE;
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.