Call procedure name created on the fly


#1

I am trying to us the Call statement to run a procedure, the name of which is stored in a field. I need some help with the proper syntax to make that work. Thanks.


#2

Call FieldName gives you the name of the field, nother the name stored in that field. The solution is Call FieldName+"" which forces PanX to evaluate the formula FieldName+"" and thus uses the contents of the field rather than its name. If the name of your field contains spaces or other special characters then you’ll need to use Call «FieldName»+""; the chevrons tell PanX that’s a field, rather than literal text or a variable.


#3

That works! Thank you.


#4

Actually, it does not distinguish between a field and a variable. It distinguishes a field or variable from literal text or operators, and it indicates where the field or variable name begins and ends.