AnsweredAssumed Answered

Problems with GetFieldName function

Question asked by deanchampeau on Feb 16, 2017
Latest reply on Feb 16, 2017 by arjen.evertse

Hi everyone,

 

I've known about the GetFieldName function for some time but was always too intimidated to put it to use. Now I need it because I'm building a script that moves among several fields and sniffs them to determine if there are any instances of two carriage returns. Here's the sniffer code...

 

PatternCount ( GetFieldName(Evaluate(Get(ActiveFieldName))) ; "¶¶" )

 

No matter what's in my field, my code always returns 0 for the pattern count. If I simplify the code replacing GetFieldName(Evaluate(Get(ActiveFieldName))) with the actual field, then the PatternCount function works as expected.

 

Any of you wizards got a clue what I'm doing wrong?

 

Thanks,

Dean

Outcomes