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 richclip as buffer
Topic Summary: I know how to get the clipboard as a string but can you get it as a buffer?
Created On: 3-Dec-2008 21:47
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.
 3-Dec-2008 21:47
User is offline View Users Profile Print this message


Kane Grzebielski

Posts: 19
Joined: 29-May-2008

Hi all,

I am currently using this code

string k = stringOf richClip

But I need to get the rich clip as a buffer without casting it to a string first. Something like

Buffer b = create
b = bufferOf richClip

except there is no "bufferOf"

suggestions?
Report this to a Moderator Report this to a Moderator
 4-Dec-2008 08:31
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Of course this is dependent what you want to use these results for, but wouldn't the following do the trick:

Buffer b = create
b = stringOf richClip

note that there is also an undocumented function plainText, which returns the plain text from RTF string, without the RTF commands, so if you want only the text content:

Buffer b = create
b = plainText stringOf richClip

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.