# Using variable values within other variables (Language Help)

That didn't quite work Jim, but it put me on the right path. Here's what I did (oh, and I lied - it's only an eight digit number):

wcheck = 11148470

t = float(wcheck)/10^8

dcsum = 0

for ddi = 1 to 7

t=float(t*10)

dcsum = dcsum + t%10

t = t-(t%10)

if t>0 then

next ddi

endif

print dcsum

Thanks for heading me in the right direction! I'd still like to find a way to use variable values as part of another variable though, like this:

for i=1 to 10

d(i) = i

next i

The end result I want is

d1 = 1

d2 = 2

etc.

Any way to do this?

**Complete thread:**

- Using variable values within other variables -
**Lockjaw**, 2012-06-04, 23:52- Using variable values within other variables -
**Jim**, 2012-06-05, 15:38- Using variable values within other variables -
**Lockjaw**, 2012-06-05, 17:53- Using variable values within other variables -
**Jim**, 2012-06-08, 04:58- Using variable values within other variables -
**Lockjaw**, 2012-06-08, 17:08- Using variable values within other variables -
**Jim**, 2012-06-15, 14:59

- Using variable values within other variables -

- Using variable values within other variables -

- Using variable values within other variables -

- Using variable values within other variables -

- Using variable values within other variables -