In Pan 6, I could do this pretty simply, and it always worked. With the new syntax for textdisplay(, Ive had to modify the expression. No matter what I do, my output says “expression contains an operand where an operator was expected” (this is the opposite of the error message I was confused about a couple of weeks ago). But no matter what I do, I get this instead of actual results.
The intent is to display the Customer’s name and address in a format that indicates account status - black and bold if current, red and bold if “frozen”, and black and italic if the account is “closed.” Black is the default color.
This is a simplified version of what I need, it merely displays the text “Frozen”, “Closed” or “OK”, in the correct format, depending on Customer Status. I put this in the Formula pane of a TextDisplayObject:
?(«Customer Status» contains “frozen”,textdisplay(rgb(65535,0,0),”Bold”,"Frozen"),
?(«Customer Status» contains “closed”,textdisplay(““,”Italic”,"Closed"),
textdisplay(““,”Bold”,"OK")))
Can anyone spot the problem? Is my problem somewhere in the ?( syntax?This is complicated by the fact that Pan X acts flakey sometimes, during this exercise it sometimes wouldn’t object if I intentionally put the wrong number of parentheses in the formula so I can’t be sure what it’s really telling me.