Hi, everyone?When I executed skill code, message is displayed (*Error* axlFormColorize: argument #1 should be any user-defined(other) type (type templete = \"otgg\" nil)Script is mainForm = axlFormCreate( gensym() "GUImain.form" '(e outer) 'callback_main nil t) axlFormColorize(mainForm "ordering" 'text 'red)What's problem?Thanks.
I just started getting a similar error after loading the latest ISR for 15.7. To get my older code to execute again I had to path the form whenever it was called. Typically when opening the port:Form = outfile("my.form" "w")becameForm = outfile("./my.form" "w")and when the form is created:npf=axlFormCreate( (gensym) "my.form" '(e outer) 'skill_prog_cback t)becamenpf=axlFormCreate( (gensym) "./my.form" '(e outer) 'skill_prog_cback t)Note the use of the "./".Try this in your code and let me know if it works.
The problem is not with the axlFormColorize command. Your axlFormCreate command is not creating the form and is returning nil. This is possible if the form file cannot be found in the form path (as CDL suggests) or there is a syntax error in your form file. If the problem is the form file, try pruning it down until you can identify the problem.Cheers, Dave