Re: Variables and Strings

Subject: Re: Variables and Strings
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: 28 Aug 2000 08:26:07 -0400
/ skvenkat@xxxxxxx was heard to say:
|      But what I meant was can I equate a string to a variable like (def x
| x-string) where x-string is "2". Anyway, more precisely my problem was
| in relation to geting the number of columns in a grid (matrix), with say
| <array><r><c>1<c>0<c>0<r><c>0<c>1<c>0<r><c>0<c>0<c>1</array> where <r>-row,
| <c>-column. I use (element array make grid) (element c make grid-cell), but
| there is no grid-row flow object, so I have to supply the number of columns in
| the make grid charchterstic by counting the number of <c> tags. How do I do
| that?

Um, ... off the top of my head:

(element array
  (let ((num-cols (node-list-length
                    (select-elements (children (current-node)) "c"))))
  ...))

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@xxxxxxxxxx> | Nothing ever gets anywhere. The earth
http://nwalsh.com/            | keeps turning round and gets nowhere.
                              | The moment is the only thing that
                              | counts.--Jean Cocteau


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Variables and Strings
    • skvenkat - Sat, 26 Aug 2000 09:37:30 -0400 (EDT)
      • <Possible follow-ups>
      • skvenkat - Mon, 28 Aug 2000 01:54:25 -0400 (EDT)
        • Norman Walsh - Mon, 28 Aug 2000 08:55:46 -0400 (EDT) <=
      • skvenkat - Tue, 29 Aug 2000 09:52:28 -0400 (EDT)