rangetool.bas

Contains a set of wrappers for returning ranges of connector and engine values

Author

Marcel Sondaar

License

Public Domain

Summary
rangetool.basContains a set of wrappers for returning ranges of connector and engine values
Functions
EngineReturnSimpleRangeCreates and sends a single sized range reply
ConnectorReturnSimpleRangeCreates and sends a single sized range reply
EngineReturnConstantRangeCreates and sends a range reply which specifies only a single valid value (i.e.
ConnectorReturnConstantRangeCreates and sends a range reply which specifies only a single valid value (i.e.
EngineReturnBooleanRangeCreates and sends a range reply deescribing a property having exactly two values
ConnectorReturnBooleanRangeCreates and sends a range reply deescribing a property having exactly two values

Functions

EngineReturnSimpleRange

Sub EngineReturnSimpleRange CDecl Alias "EngineReturnSimpleRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal First as Integer,
   ByVal Last as Integer,
   ByVal Modulus As Integer
)

Creates and sends a single sized range reply

in

Sourcemessage address of the requesting application
IndexEngine index
PropThe property requested
FirstThe lower bound (inclusive) of valid values
LastThe upper bound (inclusive) of valid values
ModulusThe difference between consecutive values

out

none

ConnectorReturnSimpleRange

Sub ConnectorReturnSimpleRange CDecl Alias "ConnectorReturnSimpleRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal First as Integer,
   ByVal Last as Integer,
   ByVal Modulus As Integer
)

Creates and sends a single sized range reply

in

Sourcemessage address of the requesting application
IndexEngine index
PropThe property requested
FirstThe lower bound (inclusive) of valid values
LastThe upper bound (inclusive) of valid values
ModulusThe difference between consecutive values

out

none

EngineReturnConstantRange

Sub EngineReturnConstantRange CDecl Alias "EngineReturnConstantRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal Value As Integer
)

Creates and sends a range reply which specifies only a single valid value (i.e. the property is a constant)

in

Sourcemessage address of the requesting application
IndexEngine index
PropThe property requested
ValueThe hardwired value

out

none

ConnectorReturnConstantRange

Sub ConnectorReturnConstantRange CDecl Alias "ConnectorReturnConstantRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal Value As Integer
)

Creates and sends a range reply which specifies only a single valid value (i.e. the property is a constant)

in

Sourcemessage address of the requesting application
IndexEngine index
PropThe property requested
ValueThe hardwired value

out

none

EngineReturnBooleanRange

Sub EngineReturnBooleanRange CDecl Alias "EngineReturnBooleanRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal Value1 As Integer,
   ByVal Value2 As Integer
)

Creates and sends a range reply deescribing a property having exactly two values

in

Sourcemessage address of the requesting application
IndexEngine index
PropThe property requested
Value1The first value possible
Value2The second value possible

out

none

ConnectorReturnBooleanRange

Sub ConnectorReturnBooleanRange CDecl Alias "ConnectorReturnBooleanRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal Value1 As Integer,
   ByVal Value2 As Integer
)

Creates and sends a range reply deescribing a property having exactly two values

in

Sourcemessage address of the requesting application
IndexEngine index
PropThe property requested
Value1The first value possible
Value2The second value possible

out

none

Sub EngineReturnSimpleRange CDecl Alias "EngineReturnSimpleRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal First as Integer,
   ByVal Last as Integer,
   ByVal Modulus As Integer
)
Creates and sends a single sized range reply
Sub ConnectorReturnSimpleRange CDecl Alias "ConnectorReturnSimpleRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal First as Integer,
   ByVal Last as Integer,
   ByVal Modulus As Integer
)
Creates and sends a single sized range reply
Sub EngineReturnConstantRange CDecl Alias "EngineReturnConstantRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal Value As Integer
)
Creates and sends a range reply which specifies only a single valid value (i.e.
Sub ConnectorReturnConstantRange CDecl Alias "ConnectorReturnConstantRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal Value As Integer
)
Creates and sends a range reply which specifies only a single valid value (i.e.
Sub EngineReturnBooleanRange CDecl Alias "EngineReturnBooleanRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal Value1 As Integer,
   ByVal Value2 As Integer
)
Creates and sends a range reply deescribing a property having exactly two values
Sub ConnectorReturnBooleanRange CDecl Alias "ConnectorReturnBooleanRange" (
   ByVal Source As Integer,
   ByVal Index As Integer,
   ByVal Prop as Integer,
   ByVal Value1 As Integer,
   ByVal Value2 As Integer
)
Creates and sends a range reply deescribing a property having exactly two values