Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 9:45 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: CloneObject() Question
PostPosted: June 25th, 2007, 1:27 pm 
Offline

Joined: September 11th, 2006, 2:38 pm
Posts: 125
I'm using for loop to clone 4 textboxes .It's done ,but I don't know how to clone the 4 textboxes with a different text in each one.

When I clone them they come with the same text.
I want each one comes with different text.


Top
 Profile  
 
 Post subject:
PostPosted: June 25th, 2007, 3:42 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Rain and cloning on a monday afternoon, what is the world coming to?

Best idea is to use arrays where the array element is linked directly to the clone's ID.

Cavet with clones is that any reset of variables / publication DOES NOT reset the clone ID.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 26th, 2007, 9:49 am 
Offline

Joined: September 11th, 2006, 2:38 pm
Posts: 125
Thanks Mac for your answer,but would you mind giving an example.


Top
 Profile  
 
 Post subject:
PostPosted: June 26th, 2007, 5:58 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
create an array called myTBCArray
create the TB to be cloned and insert the following as an expression.

myTBCArray[this.GetName().substring(3,this.GetName().length)-2147483647]

To added text to any clone simply use myTBCArray[x] = 'your text here'

where x is clone IE 1st = 1 2nd =2, etc.

Mack


You do not have the required permissions to view the files attached to this post.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 27th, 2007, 6:22 am 
Offline

Joined: September 11th, 2006, 2:38 pm
Posts: 125
As usual the answer with you.
Great Thanks Mack


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 9 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