DBWOutput

<< Click to Display Table of Contents >>

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

DBWOutput

Description

Pass field values back to MechworksPDM

Syntax

Sub DBWOutput(Field, OutString, Mode)

Parameters

Field

name of an existing field.

OutString

value for the above field.

Mode

Constant

Value

Description

ForWriting

2

Open a file to write the first field.

ForAppending

8

Open a file for writing the second field or more.

Remarks

This method is used by every external dialog or script to communicate field values back to DBWorks after making calculations or getting input by the user.

Use it to change the value of a field.

warningOpening mode changes depending on which field you have to output. The first field must have a ForWriting mode, other ones (second, third, ...) must have a ForAppending mode.

Example

DBWOutput "Material","PVC",ForWriting
DBWOutput "Surface","200",ForAppending
DBWOutput "Length","10",ForAppending