Home > Community > Forums > Logic Design > size of collection

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

 size of collection  

Last post Tue, Apr 17 2007 3:54 AM by archive. 1 replies.
Started by archive 17 Apr 2007 03:54 AM. Topic has 1 replies and 921 views
Page 1 of 1 (2 items)
Sort Posts:
  • Tue, Apr 17 2007 3:54 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    size of collection Reply

    Hi How I can count a list of objects Something equivalents to sizeof_collection in DC for example set num_of_ports [sizeof_collection[ find / -port *]]


    Originally posted in cdnusers.org by mattan
    • Post Points: 0
  • Tue, Apr 17 2007 6:35 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: size of collection Reply

    Mattan,
    You can use the tcl command llength to do what you require:

    set num_of_ports [llength [find / -port *]]


    Originally posted in cdnusers.org by jflieder
    • Post Points: 0
Page 1 of 1 (2 items)
Sort Posts:
Started by archive at 17 Apr 2007 03:54 AM. Topic has 1 replies.