comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Incremental variable names?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Incremental variable names? [message #37891 is a reply to message #37888] Mon, 02 February 2004 13:45 Go to previous messageGo to previous message
condor is currently offline  condor
Messages: 35
Registered: January 2002
Member
Jonathan Greenberg <greenberg@ucdavis.edu> wrote in message news:<BC430FE2.18E9C%greenberg@ucdavis.edu>...
> Have a question about variable names. Is there any way to create and then
> call variable names that have some incremental value in them, e.g.:
>
> t0
> t1
> t2
>
> Etc... I want to be able to first create and assign a value to tn where n =
> 0 to whatever, and then be able to subsequently call that variable using a
> loop.
>


OK, now tell us what you REALLY want to do. ;-)

As it is written up there, there doesn't exactly seem to be a reason
not to use an array for your variables -- instead of tn you write t[n]
and that's pretty much it.

I assume that there's a reason for you not to do things that way.

Now while there is certainly the possibility to use EXECUTE, I'd be
surprised if tehre weren't some cleverer way to do whatever you're
trying to do and I'm sure a lot of people would be happy to tell you
about that way if we had a little more information at hand ...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: object graphics question
Next Topic: Re: Virtual Machine Crashes :-(

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 20:00:43 PDT 2025

Total time taken to generate the page: 0.08095 seconds