Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: how to get button text
PostPosted: June 15th, 2005, 7:24 pm 
Offline

Joined: November 3rd, 2004, 4:11 pm
Posts: 18
Does anyone know if there is a function (in scripting) to get the text that is displayed on a button?


For this message balham has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: June 15th, 2005, 9:07 pm 
Offline

Joined: November 28th, 2004, 6:05 am
Posts: 141
Location: USA
The code below will get the text from the button object Button_1
and store it in the variable MyVar

//----------------------------------------------

var x = Button_1.GetFirstChild()
x.SetSelection(0,-1)
MyVar = x.GetSelectionText()

//----------------------------------------------


HTH
Chris

_________________
Opus Resources and Services


For this message Chris Jones has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 15th, 2005, 11:04 pm 
Offline

Joined: November 3rd, 2004, 4:11 pm
Posts: 18
Many thanks Chris.


For this message balham has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group