More actions
Created page with "Category:User_Functions {{HelpFiles}} ==== PhoneNumber_isValid==== Validate a phone number. returns true if the phone number is valid, otherwise return false '''Syntax..." |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<br/>{{HelpFiles}} | |||
==== PhoneNumber_isValid ==== | |||
==== PhoneNumber_isValid==== | |||
Validate a phone number. returns true if the phone number is valid, otherwise return false | Validate a phone number. returns true if the phone number is valid, otherwise return false | ||
Line 9: | Line 7: | ||
'''Syntax''' | '''Syntax''' | ||
PhoneNumber_isValid(phoneNumber,countryCode,phonenumberType) | PhoneNumber_isValid(phoneNumber, countryCode, phonenumberType) | ||
'''Arguments''' | '''Arguments''' | ||
''phoneNumber'': Is a string expression which is a phone number. | ''phoneNumber'': Is a string expression which is a phone number. | ||
''countryCode'': Is a number expression which is a country Code. | ''countryCode'': Is a number expression which is a country Code. | ||
''phonenumberType'': Is a numeric (non-decimal) expression. | ''phonenumberType'': Is a numeric (non-decimal) expression. | ||
{| border="1" | {| border="1" | ||
|- | |- | ||
Line 62: | Line 63: | ||
bool | bool | ||
'''Example''' | '''Example''' <source lang="javascript"> | ||
<source lang="javascript"> | |||
string phoneNumber = "22222222"; | string phoneNumber = "22222222"; | ||
number countryCode = 45; | number countryCode = 45; | ||
number phonenumberType = 0; | number phonenumberType = 0; | ||
bool b | bool b =PhoneNumber_isValid(phoneNumber,countryCode,phonenumberType); | ||
print(b); | print(b); | ||
</source> | </source> | ||
[[Category:General_Functions]] |
Latest revision as of 08:02, 5 June 2017
PhoneNumber_isValid
Validate a phone number. returns true if the phone number is valid, otherwise return false
Syntax
PhoneNumber_isValid(phoneNumber, countryCode, phonenumberType)
Arguments
phoneNumber: Is a string expression which is a phone number.
countryCode: Is a number expression which is a country Code.
phonenumberType: Is a numeric (non-decimal) expression.
RESOURCE | LAND LINE | MOBILE |
---|---|---|
USER | NotIdentified = 0 | |
Home1 = 1 | Mobile1 = 3 | |
Home2 = 2 | Mobile2 = 4 | |
Business1 = 5 | ||
Business2 = 6 | ||
HomeFax = 7 | ||
BusinessFax =8 | ||
GROUP | Main1 = 9 | |
Main2 = 10 | ||
Fax1 = 11 | ||
Fax2 = 12 |
Return type
bool
Example
string phoneNumber = "22222222";
number countryCode = 45;
number phonenumberType = 0;
bool b =PhoneNumber_isValid(phoneNumber,countryCode,phonenumberType);
print(b);