Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:27 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: indexed object
PostPosted: December 30th, 2004, 3:45 pm 
dear sir,
thanks for your reply, and listen my second question:

my version of opus is 04.21 XE build Nov 10 2004
I've an array f.e. baby(1-100) and 100 objects babypict(1-100) disabled on the page.

For example when the array number 55 is > 0 I want enable object babypict55

Now I wrote this code
Code:
if (baby[1]>0)
{
babypict1.Enable(true)
}

but so I must write too lines of code.

Is possible making a loop for this function?

regard, Sido


Top
   
 
 Post subject:
PostPosted: December 30th, 2004, 6:00 pm 
Offline

Joined: November 28th, 2004, 6:05 am
Posts: 141
Location: USA
Hi Sido

Yes, you can use a loop

for(i=1;i<=baby.length;i++)
{
if (baby[i]>0)
{
eval("babypict"+i+".Enable(true)")
}

HTH
Chris

_________________
Opus Resources and Services


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 66 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group