Re: the "do" command

2001-08-24 Thread Kurt Griffin
> I parse an xml file and for every child i generate a > sprite at runtime. Each child in my xml file has > further subchildren with data about the child. I need > to store this data about the child in a list which > corresponds to the number of the sprite such as list 1 > list2 and so on. > F

the "do" command

2001-08-24 Thread Richie Jindal
hi friends Yes the problem is resolved now... one interesting thing i found out was how the "do" command works(like a handler) from: http://www.mcli.dist.maricopa.edu/director/tips/lingo/unlingo.html#do and using the trick of adding the RETURN constant to declare the list varaibles

Re: the "do" command

2001-08-24 Thread Christian Wach
Richie Jindal wrote: > Yes i tried it the way u suggested also like: > do "put list" & spritNum > > But it prints as first it takes the value of > list which is obviously void since the data is > actually in list1, list2 and so on.. hmm, my message window shows: -- Welcome to Director -- do

RE: the "do" command

2001-08-24 Thread Brian Romanko
Richie, While ever convoluted, the do command should be working fine for you. Here is an output from my message window: -- Welcome to Director -- list5 = [5,6,7,8] put list5 -- [5, 6, 7, 8] sprtNum = 5 do "put list" & sprtNum -- [5, 6, 7, 8] Could you possibly be passing the

the "do" command

2001-08-24 Thread Richie Jindal
Hi Christian Yes i tried it the way u suggested also like: do "put list" & spritNum But it prints as first it takes the value of list which is obviously void since the data is actually in list1, list2 and so on.. Okay more details about my goal: I parse an xml file and for every child i gener

Re: the "do" command

2001-08-24 Thread Christian Wach
Richie Jindal wrote: > do (put "list" & spritNum ) try: do "put list" & spritNum I'd suggest you look at other methods for achieving whatever it is you want to do here... unless you *absolutely* have to, it's worth avoiding the 'do'

the "do" command

2001-08-24 Thread Richie Jindal
t where Naam, Wsize, extn, mtime are all variables with some values So i did it and it works . I can check it if i trace it in the message window. The problem now is that since (as per the almost negligible documentation that i found about the 'do' command ) this only works when i assig