Determining size of xlateIn objects

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Determining size of xlateIn objects

  • Creator
    Topic
  • #50635
    Benjamin Rubin
    Participant

    I’m writing a tcl proc where I’d like to be able to take multiple in objects of arbitrary length, manipulate them and then output to a matching list of outbound objects.

    The problem I am having is determining the length of each inbound object. As I iterate across xlateInVals, I’m not sure how to tell where one object ends, and another begins.  I suppose I may be able to use llength and division if I’m sure that all my input objects are of the same size, but thats not the elegant solution that I’d like to use.

    Any suggestions?

Viewing 1 reply thread
  • Author
    Replies
    • #66855
      Anonymous
      Participant

      What length are you looking for ?

      The field length or the entire segment ?

      What kind of objects ?

    • #66856
      Tom Rioux
      Participant

      I’m not quite sure if I understand what you are asking, but from what I gather, why not try this (and I may be oversimplifying things for what you are wanting to do:

      [string length [lindex $xlateInVals $ctr] ]

      Where $ctr would be some ctr that you use as you iterate through the list.

Viewing 1 reply thread
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,432
Topic Tags
286
Empty Topic Tags
10