From: "Peter.waller"
Subject: Re: Is There A Way to....?
no no no noooooooooooooo
what I mean is there a faster way of making x a different variable to what
it is...
e.g.
do
xx=1+1
xxx=xx
loop while xx < 111
what I want is xxx to be a different variable each time,,
maybe I could write a sub
e.g.
sub mysub(variables needed to be filled,what to fill it with$(expression)
variable needed to be filled could be a,b,c,d,e,f,g,h,i,j,k, and expression
could be xxxx+1/2*9
please help me with the programming part!!
pete
Pw
Reinier Zwitserloot wrote in
article ...
> uhm, as in a random variable, or increasing from 1 to 10000?
>
> random variable:
>
> RANDOMIZE TIMER ' put this at the very start of your program.
>
> s=INT(RND*TopValue)+1 'S= anywhere from 1 to TopValue.
>
> or to make it loop:
>
> FOR s = 1 to 10000
> 'this code will run 10000 times, s being 1, then 2, then 3, etc.
> NEXT s
>
> Peter.waller wrote:
> >
> > I would like to use multiple variables that will change in cirten
> > instances....
> > do
> > s=s+66
> > x=s
> > loop until s > 10000
> > I would like the variable "x" to be different every time...
> > is there a way
> >
> > Pw
> >
> > Plz Reply!
> > --
> > Please remove NS from reply address if you
> > wish to reply
> > in other words reply to peter.waller@btinternet.com
>
> --
> - Ray Zwitserloot.
>
> R.Zwitserloot@antispam.BTInternet.com
> Change the E-mail address to reply!
>
> ----------------------------------------------------
>
>
>
*** QwkNews (tm) v2.1
* [TN71] alt.lang.powerbasic POWER_BAS Gateway
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/560.2)
|