Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Cadence > putprop error
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3925 of 4193
Post > Topic >>

putprop error

by SS <ssriramiyer@[EMAIL PROTECTED] > Mar 12, 2008 at 06:31 AM

I have the following callback function called everytime something
changes in a toggle field.
I am getting the following error


*Error* putprop: first arg must be either symbol, list, defstruct or
user type - nil

Here is my callback procedure


procedure( toggleCB(form field)
  let((fieldValue toggleValue lastValue)
    ;; get the current value of the field
    fieldValue = getq(get(form field) value)
    ;; obtain the toggle value, which is the last value in the list
    toggleValue = car(last(getq(get(form field) value)))
    ;; store a custom property on this field to mark the last value
    lastValue = putpropq(get(form field) !toggleValue storedValue)
    printf("I'm breaking in ToggleAll\n")
    ;; when the current toggle value is not the same as the stored
value
    ;; set the values all on if the toggle is on, or all off otherwise
    when(toggleValue != lastValue
      if(toggleValue
        putpropq(get(form field) mapcar(lambda((x) x t) fieldValue)
value)
        putpropq(get(form field) mapcar(lambda((x) x nil) fieldValue)
value)
      ); if
    ); when
  ); let
)

It is erroring out in the putprop statements.

Could you tell me what is that Iam doing is wrong
 




 3 Posts in Topic:
putprop error
SS <ssriramiyer@[EMAIL  2008-03-12 06:31:16 
Re: putprop error
Andrew Beckett <andrew  2008-04-02 00:38:12 
Re: putprop error
SS <ssriramiyer@[EMAIL  2008-04-01 23:10:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 27 23:15:32 CDT 2008.