Toggle menu
868
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 10:21, 26 October 2016 by Tranvuthaibinh (talk | contribs)


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);