7.7.6.89. GEL_StrLenΒΆ

Return the string length of a literal string or string variable.

Format

GEL_StrLen( text);

Parameters

a literal string or string variable.

Description

return the length of the string

Synchronous

Synchronous from GEL: Yes

Completely synchronous: Yes

Example

string company = "Texas Instruments"; string product = "CCS" string product_str = GEL_StrCat(company, " ", product, " ", "11.2");

int length = GEL_StrLen(product_str); // length == 26 string state = GEL_SubStr(company, 0, 5); // state == "Texas"

GEL_TextOut(product_str);

Related Topics

GEL_StrLen

GEL_SubStr