Dumb Question About Variables

Ken Ray kray at sonsothunder.com
Fri Mar 22 15:00:01 EST 2002


Dave,

You can do it that way, but MC has a better way:

repeat with i = 1 to 10
  put stuff into ("H" & i)
end repeat

Neat, huh?

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web site: http://www.sonsothunder.com/

----- Original Message ----- 
From: "David Tremmel" <david.tremmel at duke.edu>
To: <metacard at lists.runrev.com>
Sent: Friday, March 22, 2002 1:36 PM
Subject: Re: Dumb Question About Variables


> I think you'd have to use the do statement:
> 
> repeat with i = 1 to 10
>   get "put " & stuff & " into H" & i
>   do it
> end repeat
> 
> 
> Regards,
> Dave Tremmel
> 
> 
> On 3/22/02 2:28 PM, "Gregory Lypny" <gregory.lypny at videotron.ca> wrote:
> 
> > Hi again everyone,
> > 
> > I can't seem to create a series of variables whose names are
> > identical except for a numerical prefix, such as H1, H2, H3, ... (and
> > this is not an associate array).
> > 
> > I tried
> > 
> > repeat with i=1 to 10
> > Put stuff into (H & i)
> > end repeat
> > 
> > but MetaCard doesn't like that.
> > 
> > Greg
> > 
> > _______________________________________________
> > metacard mailing list
> > metacard at lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/metacard
> > 
> > 
> 
> -- 
> David Tremmel
> Assistant Director, National Phytotron
> 
> Duke University
> Phytotron Bldg.                     Phone:  (919) 660-7415
> Box 90340                           FAX:    (919) 660-7425
> Durham, NC  27708-0340              E-mail: david.tremmel at duke.edu
> 
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
> 




More information about the metacard mailing list