FBUtil_BR::isCNPJ Method [AX 2012]

Identifies whether a given string value could represent a CNPJ number.

client server public static boolean isCNPJ(CNPJCPFNum_BR _cnpjCpf)

Run On

Called

Parameters

_cnpjCpf
Type: CNPJCPFNum_BR Extended Data Type
A CNPJCPFNum_BR parameter that has a value that could represent a CNPJ or CPF number.

Return Value

Type: boolean
true if the given value could represent a CNPJ number, based on its length; otherwise, false.

This method uses the length of the value that is passed in as parameter to identify whether the value could represent a CNPJ.

Show: