I expected Advanced Renamer to use this expression:
{=index + "_" + Chr(64 + index)=}
to create file names with an alphabetical index:
1_A
2_B
3_C
However, index
is treated as a string and is not automatically converted to an integer. As a result, 64 + 1
is evaluated as 641
instead of 65
, causing Chr()
to generate unintended characters:
Fortunately, I can force type conversion with the following modification:
{=index + "_" + Chr(64 + (index as int))=}
Interesting observation: The entire eval expression is case-insensitive, except for int
, which must be written in lowercase.
I'm unsure if this qualifies as a bug report or a quick tutorial.