Note: I just found another issue....well same issue more complex. Some of the columns have double quotes in the names....that causes the script to error out.......
This could be worked around......but I think the easiest solution is to change the double quotes in the names to single quotes(manually) and then run the script with the change noted below.
This is a common issue, and I should have protected for the issue.
The 7th column is named:
BONNE JAM JAR T-LIGHT HOLDER
Unless guarded for, JMP will interpret the name not as a single column name, but rather 2 columns,
BONNE JAM JAR T
and
LIGHT HOLDER
JMP will then try to subtract one from the other, because it finds a minus sign, "-" between the 2 names. To protect against these complex column names, JMP has a function called :Name(). So if you replace the following line in the code:
Expr( __col__ ), Parse( ":" || Char( Column( dt, i ) << get name ) )
with:
Expr( __col__ ), Parse( ":Name(\!"" || Char( Column( dt, i ) << get name ) || "\!")")
it will work
Jim