Question : I have an employee information page in which there is employee name field I want to put a validation so that at run time on click save button. It shows a message to user that it will not accept any other value than characters. Please reply me soon.
Ans:You can use IsAlpha function.
If ?Not IsAlpha(MYRECORD.NAME.Value) Then
/* do error processing */
Error MsgGet(<MsgSet>, <MsgNum>, "default error message");
End-if;
Ans:You can use IsAlpha function.
If ?Not IsAlpha(MYRECORD.NAME.Value) Then
/* do error processing */
Error MsgGet(<MsgSet>, <MsgNum>, "default error message");
End-if;
IsAlpha:
Syntax
IsAlpha(String)
Description
Use the IsAlpha function to determine if String contains only textual characters, including alphabetic
characters
Returns:
A Boolean value: true if the string contains only alphabetic and textual characters, false if it contains any numbers, punctuation or spaces.
No comments:
Post a Comment