Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently May 17th, 2024, 9:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Set Variable to contents of text object
PostPosted: November 14th, 2004, 1:11 am 
Offline

Joined: November 3rd, 2004, 6:44 pm
Posts: 59
Location: Ipswich, UK
Is it possible to set a variable to the contents of a text object? I can set a varible to the name of the object using 'this.GetName()' but I cannot see a way of getting the contents.

Clive Cartmel


For this message Clive Cartmel has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 15th, 2004, 11:16 am 
Offline

Joined: October 25th, 2004, 3:09 pm
Posts: 32
Try this

TextObj.SetSelection(0, -1);
variable = TextObj.GetSelectionText();


For this message Tony Coleman has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Text to variable
PostPosted: November 15th, 2004, 11:24 pm 
Offline

Joined: November 3rd, 2004, 6:44 pm
Posts: 59
Location: Ipswich, UK
Thanks for that Tony I will give it a try when I get home


For this message Clive Cartmel 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 1 guest


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