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

ExtendScript Find() methods - FS_FindCustomizationFlags constants

Mentor ,
Sep 30, 2016 Sep 30, 2016

Copy link to clipboard

Copied

Hi,

While attempting to do Find operations with ExtendScript, FM2015, I find that the documented constants for FS_FindCustomizationFlags do not resolve. From the doc:

Constant.FS_FindCustomizationFlags (15) - An optional parameter of type FT_Integer that may be any of the following bit flags OR’ed together:

• Constants.FF_FIND_CONSIDER_CASE (0x01)

• Constants.FF_FIND_WHOLE_WORD (0x02)

• Constants.FF_FIND_USE_WILDCARDS (0x04)

• Constants.FF_FIND_BACKWARDS (0x08)

For example, this just reports "undefined":

   alert(Constants.FF_FIND_CONSIDER_CASE);   

I worked around it by specifying the hex integer directly, but I'm wondering if I'm just missing something. And FWIW, I originally bumped into this looking for a way to search with regular expressions. I found this in the FDK fapidefs.h file, which fortunately allowed me to get it to work:

#define FF_FIND_USE_REGEX   ((IntT)   0x10)

Russ

TOPICS
Scripting

Views

673

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

Enthusiast , Oct 12, 2016 Oct 12, 2016

Hi Russ,

this bug has been fixed with update 3 (Ref# 4102169).

But I don't know if FM 10, 11 or 12 is affected.

Klaus

Votes

Translate

Translate
Enthusiast ,
Oct 12, 2016 Oct 12, 2016

Copy link to clipboard

Copied

Hi Russ,

this bug has been fixed with update 3 (Ref# 4102169).

But I don't know if FM 10, 11 or 12 is affected.

Klaus

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
Mentor ,
Oct 17, 2016 Oct 17, 2016

Copy link to clipboard

Copied

LATEST

Hi Klaus,

Good catch, thank you. I haven't had a chance to install the update yet but I do see the information in the release notes.

Thanks,

Russ

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