7.7.8.92. GEL_StrLenΒΆ

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

Syntax

GEL_StrLen( text );

Parameters

text: 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_StrCat

GEL_SubStr