|
From: Andrey G. G. <A.G...@in...> - 2026-02-24 15:32:50
|
Thank you
On Sun, 22 Feb 2026, Radek Machulka wrote:
> sub get_value array$ index
> return val(seg$(array$, index, index))
> end sub
>
> nums$ = "1234567890"
>
> for i = 1 to len(nums$)
> val = 10*get_value(nums$, i)
> print val
> next i
I think I'm going to try to use a set of simple variables x1, x2, x3, ...
as an "array":
val(format$(i,"dec prepend x"))
will return the i-th element.
for i = 1 to xn
xi = val(format$(i,"dec prepend x"))
do_something_with_xi
next i
Something like that.
Once more thank you,
Andrey
|