Skip to main content

ISTEXT

Checks whether a value is text, and returns true or false.

Syntax

expression.ISTEXT(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRangestringnumber

Returns

boolean

Example

var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.ISTEXT(255));
oWorksheet.GetRange("A2").SetValue(oFunction.ISTEXT("#N/A"));
oWorksheet.GetRange("A3").SetValue(oFunction.ISTEXT("Online Office"));