Is there any functions to calculate integer length / or empty
Thank You sir
You need to find out why its not validating.
What is the value returned on variable pinlength and reglength?
Thanks,
Girish S.
It is triggering when i call it from clicked. but its not validating
Have you debugged the code?
Does it go inside the if condition?
Thanks,
Girish S.
as i said there are 2 dialogs which are opened by buttons , initially i used to close the 1st dialog from 2nd dialog. but now i am closing the 1st dialog first and opening the second dialog through clicked method , but the can close method is not working. the screenshots are previously attached in another question.
code :
int pinlength, reglength ;
pinlength = strLen(int2Str(SecurityPINTmp.PIN));
reglength = strLen(SecurityPINTmp.RegistrationID);
if(pinlength == 0 || reglength == 0)
{
Error('@BM:BM0149');
return false;
}
thanks.
Which part is not working. Can you be more elaborate?
Thanks,
Girish S.
I Wrote 2 validations on canclose method but its not working. initially i was trying to close the form from 2nd dialog and i changed it . i am closing after clicking the button but its not working.
thanks
If you need validation on click of OK button in dialog then you can add your validation in if (dialog.closedOk()) loop.
You can add your validation on the CanClose method on the 1st dialog form.
canClose returns boolean value.
public boolean canClose()] { boolean ret; ret = super(); //add your logic for integer validation if(int == 0) { ret= checkfailed("Warning"); } return ret; }
Thanks,
Girish S.
I have a form on which when i click a button , it opens 1st dialog . the first dialogs has 2 fields when i click ok on 1st dialog it opens 2nd dialog . i need validation at 1st dialog that if fields are empty is shouldn't open second dialog. How can i achieve it ?
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156