Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Assign an ID/Tag to a Control?
PostPosted: March 13th, 2008, 8:42 am 
Offline

Joined: March 21st, 2006, 10:37 pm
Posts: 31
Location: Grantham, Lincolnshire,UK
In .Net I can assign a Tag to almost any control to give it a hidden value.

Is there something similar I can use in Opus? I've been all through the manual and searched and cannot find anything similar.

I basically want to be able to assign the same 'tag' to two controls, so on DragAndDrop I can see if the two controls being connected have the same tag.

I am doing a mini matching game with words. I have pulled all my data back from the database and selected 6 unique random records and put them into two Arrays. I then assign the text from array A to one set of textboxes and the text from Array B to another textbox set that have a droppable panel below them.

Also, is there any way of doing a multidimensional array, i.e. Array example = new Array[1,1];


Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: March 13th, 2008, 10:29 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
A couple others here know the ins and outs of Arrays, so I'm sure you'll get some great guidance.

Meanwhile on your last question. Opus uses standard ECMA (?) script... so a couple approaches that may be useful are nested arrays... and then also dual or parallel arrays working off the same index. Do a search here on terms:___ nest array, and also try___ nested array


You might also do a Search on____ property or properties
Objects (and variables (?)) can be extended. Similar to
Object1.color
Object1.size
Object4.size
Object4.movable

I've just not gone very far down that road.

Cheers.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
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 14 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