Home > Community > Forums > PCB SKILL > Problem about axlFormColorize

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Problem about axlFormColorize 

Last post Tue, Jun 12 2007 1:21 AM by archive. 2 replies.
Started by archive 12 Jun 2007 01:21 AM. Topic has 2 replies and 1502 views
Page 1 of 1 (3 items)
Sort Posts:
  • Tue, Jun 12 2007 1:21 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    Problem about axlFormColorize Reply

    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.


    Originally posted in cdnusers.org by janggj
    • Post Points: 0
  • Tue, Jun 12 2007 7:01 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Problem about axlFormColorize Reply

    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")

    became

    Form = outfile("./my.form" "w")

    and when the form is created:

    npf=axlFormCreate( (gensym) "my.form" '(e outer) 'skill_prog_cback t)

    became

    npf=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.


    Originally posted in cdnusers.org by CDL
    • Post Points: 0
  • Tue, Jun 12 2007 1:11 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Problem about axlFormColorize Reply

    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


    Originally posted in cdnusers.org by Dave Elder
    • Post Points: 0
Page 1 of 1 (3 items)
Sort Posts:
Started by archive at 12 Jun 2007 01:21 AM. Topic has 2 replies.