|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > Options > DBWGetOptionList |
This function acts like the DBWGetOption but allowing to retrieve some particular option value that could be multiple.
Function DBWGetOptionList(OptionID, ByRef OptionList)
OptionID |
string identifying the option |
The Functions returns the number of values found for the passed option.
OptionList |
An array containing the option values |
Suppose the options are set like this:

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: 