Variable arrays

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
ZZ

Variable arrays

Post by ZZ » Thu Jul 10, 2003 12:42 pm

I execute the next code:



Let>VAREXPLICIT=0
Label>a
Let>kilo[0]=Ana
Let>kilo[1]=Rosario
Let>kilo[3]=Rebeca
Let>kilo[2]=Antonia
Label>3,resul
Random>3,resul
MessageModal>%resul%,kilo[%resul%]
Goto>a


I thought the Message were like this: 2,Rebeca

But the Messages are like this: 2,kilo[2]

What is wrong?
(How could I put the instruction if VAREXPLICIT were 1?)

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Jul 10, 2003 7:02 pm

Hi,

You need to do this:

Let>VAREXPLICIT=0
Label>a
Let>kilo[0]=Ana
Let>kilo[1]=Rosario
Let>kilo[3]=Rebeca
Let>kilo[2]=Antonia
Label>3,resul
Random>3,resul
Let>mr=kilo[%resul%]
MessageModal>%resul%,%mr%
Goto>a
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts