View Single Post
  #3  
Unread 08-04-2010, 11:39 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

I half have working what I want...

I managed to get it to work if I reference the object directly by name, but if I try to use a variable and concatenate them I can't seem to get the desired result. And I would need to do this for my idea to work.
I have an object named Test Object with the text element set to: Testing 123

sTest=('Parent.Test Object.text')
say sTest

The above returns the proper string echoed into chat.

However the following I cannot seem to find a proper method for.

sName=('Long Item Name')
sTest=('Parent.') ## sName ## ('.text')
say sTest

The above returns: Parent.Long Item Name.text
Have tried a few different alterations with how I concatenate them, but with no luck.

I tried setting it to another variable again like: sTest2=('sTest')
... but that did nothing new.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>

Last edited by Drumstix42 : 08-04-2010 at 11:41 AM.
Reply With Quote