• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can detect content type of characters?

Enthusiast ,
Jun 08, 2021 Jun 08, 2021

Copy link to clipboard

Copied

Ex:

var strChar=oTextFrame.characters[i].contents;

How can detect strChar is  [String] or [SpecialCharacters Enum]?

 

TOPICS
Scripting

Views

204

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 08, 2021 Jun 08, 2021

Try the following

var strChar=oTextFrame.characters[i].contents;
if(strChar.constructor.name == "Enumerator")
 alert("Special character found")

-Manan

Votes

Translate

Translate
Community Expert ,
Jun 08, 2021 Jun 08, 2021

Copy link to clipboard

Copied

LATEST

Try the following

var strChar=oTextFrame.characters[i].contents;
if(strChar.constructor.name == "Enumerator")
 alert("Special character found")

-Manan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines