DBWResult

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > PDMSystem >

DBWResult

Description

Retrieves from DBWorks the results of a previous command sent via DBWShell

Syntax

Function DBWResult(ResultID)

Parameter

ResultID

Name of a result code, depending on the DBWShell function called previously. Every result code must begin with a '@' character.

Return Values

The function returns the requested value
After calling this function check the boolean value of the okDBW variable:

TRUE

if succeeded in fetching the value

FALSE

otherwise

Remarks

Call this function to retrieve the results of a command sent to DBWorks via DBWShell. For the list of available results code refer to the DBWShell available commands.

Example

call DBWShell( "Bom" )
if (okDBW = False) then exit sub
' after the bom, show the created excel file name
excelFile = DBWResult( "@EXCEL_FILE_PATH" )