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 export integer value to a file?
Topic Summary:
Created On: 4-Aug-2003 22:46
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.
 4-Aug-2003 22:46
User is offline View Users Profile Print this message


Hong Zhang

Posts: 29
Joined: 12-Sep-2002

Hi All,

I am trying to export Object Level for each object to a file. But I got error. Does anyone know how to export integer to a file?

Thanks in advance,
hong

Here is my code:

Module m = current
Object o = first m
Stream report = write "report.doc"
for o in m do{
int sObjectL=level(o)
report << sObjectL
}
}

close report
Report this to a Moderator Report this to a Moderator
 4-Aug-2003 22:56
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You need to convert integer "sObjectL to a string, and I suspect you want to add a CR after each level:
report << sObjectL "\n"


Also your output will look odd since you are only considering objects in the current display. If you change your loop to: "for o in entire m do" you'll get all the objects, including the hidden Header and Row objects of the DOORS tables.

- Louie
Report this to a Moderator Report this to a Moderator
 12-Aug-2003 20:58
User is offline View Users Profile Print this message


Hong Zhang

Posts: 29
Joined: 12-Sep-2002

Louie,

Thanks a lot for your help!

How to convert integer to string? You are right about my code too. I am going to modify it.

thanks again,
hong
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.