PDA

View Full Version : How to do text strings in enumeration field?



turbo_bu
February 13th, 2017, 01:12 AM
I am creating a CAX file and want to use a text string for the enumerations field. Everything works fine until I put in a space in the text string. Is there way to make it so the enumeration description can have a space in it?

Examples:

This works:
SI_ENUM = "0=Option1,2=Option2"

This one does not:
SI_ENUM = "0=Option 1,2=Option 2"

What is the trick to allowing spaces in the enumeration field?

SASDakota
February 13th, 2017, 03:03 AM
You need to SI_ENUM = """0=Option 1"",""2=Option 2"""

This also works in the SI_ROW and IM_ROW fields.

turbo_bu
February 13th, 2017, 04:18 AM
Thanks, that works!