Skip to main content
April 1, 2010
Question

Values for Variable

  • April 1, 2010
  • 1 reply
  • 5542 views
Its easy to have a variable x having values from 0 to 355 in increments of 5 by x:=0,5..355

But I want a variable say y, having values starting from 120,125....355,0,5,10....115 (order should be as given).

How do you declare such a variable??

1 reply

1-Visitor
April 1, 2010
It would be normal in such cases to use a vector,
and then use a range variable to index it. The
vector can be loaded by a suitable programme line
(probably two steps in your case).

Philip Oakley
April 2, 2010
thanks....can you help me with the programming part?
how will the program look?
23-Emerald V
April 2, 2010
On 4/2/2010 2:15:14 PM, the_viking wrote:
>thanks....can you help me with
== thanks....can you help me with the programming part?
== how will the program look?

Here's a couple of ways ...

Stuart