DBWSetOption

<< Click to Display Table of Contents >>

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

DBWSetOption

Description

Sets a given option to the indicated value.

Syntax

Sub DBWSetOption(OptionID, Value)

Parameters

OptionID

name of an available option.

Value

value for the indicated option.

Return Values

After calling this function check the boolean value of the okDBW variable

TRUE

succeeded in fetching the value

FALSE

otherwise

Remarks

The saving of modified option is not executed each time you call the Option command; you have to explicit call the DBWShell ("SaveOptions") command in order to save options.

See also

Related topics

Example

DBWSetOption "AVOID_SAME_USER_APPROVAL","1"

Example option multi values

When setting options that can accept multiple values, you have to reset the option first, then enter all the values as single entry:

DBWSetOption "NOT_NULL_FIELD","@RESET"
DBWSetOption "NOT_NULL_FIELD","DOCUMENT.CATEGORY1"
DBWSetOption "NOT_NULL_FIELD","DOCUMENT.CATEGORY2"
DBWSetOption "NOT_NULL_FIELD","DOCUMENT.CATEGORY3"