Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 2:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Random name from a list of 25.
PostPosted: January 17th, 2011, 8:27 pm 
Offline

Joined: March 4th, 2005, 8:44 pm
Posts: 34
I'm sure this has been covered elsewhere but I've not been able to find it. I want to create a text box that display a random name from a list of 25 possible names. I've managed to create an array variable (<randomname>)with the names stored as elements in that variable. I can display a single name using the Constant Expression <randomname[n]> . Is there a way of replacing the fixed value [n] with a random value between 0 and 24.

As I'm using Creator I can't do this with a script.

Thanks in advance.
Terry


For this message terry burlace has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Random name from a list of 25.
PostPosted: January 17th, 2011, 9:57 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Terry,

Shooting blind as I don't have creator, but you might be able to do this:

Use the random action (on a button etc) on the programming tab / variables to assign a random number to a variable. Then place the variable in the constant expression.

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  
 
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 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