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: How to tell if an object is empty?
Topic Summary:
Created On: 6-Jul-2006 19:21
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.
 6-Jul-2006 19:21
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

We need to follow links to get at the next level of spec, but only if there's nothing there besides a link.

Is there any built-in way to tell if an object is completely empty? That is, does not contain any (non-space) heading or text, or any pictures, or any OLEs? (Or anything else I haven't thought of that can go into an object...) We're only looking at the "main column," other attributes are ignored.

I've come up with the attached but it would be neater if there were one built in, although I didn't find anything in the ASCII dump. I got the picture-finding part from Louie's post on this thread.

Chris
Report this to a Moderator Report this to a Moderator
 7-Jul-2006 00:37
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Looks good, especially that slick picture part...

I'd be tempted to classify text empty when it contains only white space characters, which are as far as I know this list: string cl_White = " \t\n\r\f\b". There is surely a RegExp you can use to check that.

Be sure to define the RegExp as a global outside the function, since the regexp function itself is especially time consuming.

- Louie
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.