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 pass a bolean from Doors to VB 6
Topic Summary:
Created On: 31-Oct-2006 09:29
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.
 31-Oct-2006 09:29
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

hello DXLiens,

does anybody know how to pass a boolean from Doors to VisualBasic 6?
Or is there a reference where I can find the answer??

-Mussie

Report this to a Moderator Report this to a Moderator
 31-Oct-2006 10:18
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

You could: -
1) use the "system" command to pass the program a command line argument
2) Have the dxl program write to a file then have the vb6 exe read it
3) Use OLE automation

The first option would be my preference for passing one parameter.

-------------------------
Regards,

Richard Good
Report this to a Moderator Report this to a Moderator
 31-Oct-2006 12:13
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

Sorry, but do you know an example code for how to pass just a single argument to an already running
VB programm?
I think system is just a method to start an execution in another environment!

-Mussie

Edited: 31-Oct-2006 at 12:17 by Mussie Woldemicael
Report this to a Moderator Report this to a Moderator
 31-Oct-2006 18:33
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

From the DXL help file: -

Automation interface
DOORS provides an automation interface for other applications to use to control DOORS. This object is called DOORS.Application. It provides two methods that can be called from other applications, along with the property Result.

The property, DOORS.Application.Result, allows other applications to exchange information with DOORS in both directions. From DOORS, use the oleGetResult and oleSetResult functions to pass information to and from a Visual Basic program.

Example
/*
This is an example of an Excel macro that calls DOORS, logging
in as user 'John Smith' with password 'password', and sets the
result message for use with oleGetResult.
*/
Sub testDoors()
Set DOORSObj = CreateObject("DOORS.Application")
SendKeys "John Smith" & "{TAB}" & "password" &
"{ENTER}", True
DOORSObj.Result = "Just checking"
End Sub

Paul Tiplady provides a nice example of using OLE automation
here

-------------------------
Regards,

Richard Good
Report this to a Moderator Report this to a Moderator
 1-Nov-2006 07:29
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

Hi Mussie, if you are looking at any type of DOORS -> Excel integration, then I would highly recomend you look at http://www.galactic-solutions.com/downloads/GalacticDownloadExcel.htm by Michael Sutherland.  This will certainly point you in the right direction if not suit your needs directly.

Rgds
Andrew.

-------------------------
Andrew Tagg
Thales Air Systems, Melbourne
Australia.
andrew.tagg@thalesatm.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.