Initializing help system before first use

setDir Method (Int32, Double)

Set a variable directive.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 4.8.14.0
Syntax
C#
VB
public int setDir(
	int type,
	double val
)

Parameters

type
Type:  SystemInt32
The type of directive. Possible values:
  • BCLconstant.XPRB.PR - Priority.
  • BCLconstant.XPRB.UP - First branch upwards.
  • BCLconstant.XPRB.DN - First branch downwards.
  • BCLconstant.XPRB.PU - Pseudocost on branching upwards.
  • BCLconstant.XPRB.PD - Pseudocost on branching downwards.
val
Type:  SystemDouble
The value of this argument depends on the type of directive to be defined. Possible values:
  • XPRB.PR - priority value, integer between 1 (highest) and 1000 (least priority, default value).
  • XPRB.UP - no input required, choose any dummy value (e.g. 0).
  • XPRB.PU - value of pseudocost for the corresponding branch.

Return Value

Type:  Int32
0 on success.
Examples
xbexpl1.cs and xbexpl1i.cs in the User's Guide Examples folder.
See Also