DBWGetOptionList

<< Click to Display Table of Contents >>

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

DBWGetOptionList

Description

This function acts like the DBWGetOption but allowing to retrieve some particular option value that could be multiple.

Syntax

Function DBWGetOptionList(OptionIDByRef OptionList)

Parameter

OptionID

string identifying the option

Return values

The Functions returns the number of values found for the passed option.

OptionList

An array containing the option values

See also

Related topics

Example

Suppose the options are set like this:

DBWGetOptionList1

Then you have the following script:

Sub main()
 DBWInit(TRUE)
 option2search = "NOT_NULL_FIELD"
 ReDim Preserve optionList(1)
 numOfValues = DBWGetOptionList(option2search,optionList)
 DBWMsgbox "found " & numOfValues & " values for option" & vbcrlf & option2search
 for i=0 to ubound(optionList)-1
  DBWMsgBox "not null field = " & optionList(i)
 next

This produces 4 message boxes: DBWGetOptionList2