Copy link to clipboard
Copied
Ex:
var strChar=oTextFrame.characters[i].contents;
How can detect strChar is [String] or [SpecialCharacters Enum]?
Try the following
var strChar=oTextFrame.characters[i].contents;
if(strChar.constructor.name == "Enumerator")
alert("Special character found")
-Manan
Copy link to clipboard
Copied
Try the following
var strChar=oTextFrame.characters[i].contents;
if(strChar.constructor.name == "Enumerator")
alert("Special character found")
-Manan