Home > Community > Forums > PCB SKILL > detecting dbid is removed

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: *

 detecting dbid is removed 

Last post Sun, May 20 2012 5:17 PM by SkilSiao. 2 replies.
Started by SkilSiao 13 May 2012 11:09 PM. Topic has 2 replies and 2045 views
Page 1 of 1 (3 items)
Sort Posts:
  • Sun, May 13 2012 11:09 PM

    • SkilSiao
    • Top 200 Contributor
    • Joined on Tue, Oct 11 2011
    • Posts 38
    • Points 565
    detecting dbid is removed Reply

    Hi, a variable stored with a database object id will appear as "dbid:removed" when the object is deleted

    (or the function terminated). but the variable is still a valid variable, not nil or unbound. is there a function 

    to detect the dbid still exists in the database (not removed)? for an example,

    Skill> aa

    dbid: removed

    one way of approach is:

    Skill> aa->?

    nil 

    is there a specific function for that? thx in advance.

    • Post Points: 20
  • Mon, May 14 2012 5:27 AM

    • fxffxf
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • ., AK
    • Posts 295
    • Points 4,705
    Re: detecting dbid is removed Reply

     use dbid->objType==nil

    • Post Points: 20
  • Sun, May 20 2012 5:17 PM

    • SkilSiao
    • Top 200 Contributor
    • Joined on Tue, Oct 11 2011
    • Posts 38
    • Points 565
    Re: detecting dbid is removed Reply

    Hi fxffxf, thanks for the help.

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by SkilSiao at 13 May 2012 11:09 PM. Topic has 2 replies.