Close form

Hi good people i’ve created a form that is doing the Verification,What i want to ask is when the user verify a record i want the form to dissapper immediately.I have a button that runs the verification on the OnPush i have this code:

Oldrecref.GETTABLE(Rec);
“Old Lastname” := Lastname;
“Old Initials” := Initials;
“Old ID No.” := “ID No.”;
“Old Vat Registration No” := “VAT Registration No.”;
//“Old Payment Method” := “Payment Method Code”;
Status := Status::Approved;
“Actual Status” := “Actual Status”::Approved;
MODIFY;
NewRecRef.GETTABLE(Rec);

cChangeLogMngt.LogModification( NewRecRef, Oldrecref );

This is working very well and i need a code to close the form after this code is executed!!! please help

Hi.

I’m not sure if this is as simple as I’m reading it to be but, have you tried the following?

CurrForm.CLOSE;

Let us know if I’ve misunderstood this post.

Good luck

Hi Thank alot,Thats what i wanted!!! Can anybody tell me how is the function ACTION::CLOSE work,because i was trying to use it

This is an option of the return value of the FORM.RUNMODAL function. It tells you that a form has been closed by the user hitting the CLOSE button.