Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Get the text available in the DB Box
Topic Summary:
Created On: 24-Sep-2008 17:24
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 24-Sep-2008 17:24
User is offline View Users Profile Print this message


Murugaraj S

Posts: 38
Joined: 8-May-2007

Can some one help me, How to read (or) print the value which is available in the text box?

Here is my code:
void sendRID(DB RIDbox) {}
DB RIDbox = create "Text Box"
DBE response = text(RIDbox, "Your response:", "",200, false)
apply(RIDbox, sendRID)
show RIDbox

If i type anything into the "Your response:" box & click apply, I want to read (or) print the value. Any help appreciated Thanks in Advance.
Report this to a Moderator Report this to a Moderator
 24-Sep-2008 17:31
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

//try
DB RIDbox = create "Text Box"
DBE response = text(RIDbox, "Your response:", "",200, false)
void sendRID(DB RIDbox) {
string s = get response
print s
}
apply(RIDbox, "Print", sendRID)
show RIDbox
Report this to a Moderator Report this to a Moderator
 24-Sep-2008 21:15
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Notice that the callback sendRID must access the DBE, which therefore must be a global variable that's already declared. Since the callback must already be defined when defining the Dialog box itself, my code tends to be structured as attached.


- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.