CommonCParameter.Pass
- Updated2025-07-21
- 1 minute(s) read
CommonCParameter.Pass
Syntax
CommonCParameter.Pass
Data Type
Use the following constants with this data type:
- CParamPass_ByConstPointer –(Value: 0x41) Passes a pointer to a constant value.
- CParamPass_ByConstReference –(Value: 0x50) Passes a reference to a constant value.
- CParamPass_ByPointer –(Value: 1) Passes a pointer to a modifiable value.
- CParamPass_ByReference –(Value: 0x10) Passes a reference to a modifiable value.
- CParamPass_ByVal –(Value: 0) Passes a copy of the value.
Purpose
Specifies how to pass the value specified in the argument expression property, CommonCParameter.ValueExpr , to the specific function. Use the CommonCParameter.PassArrayElementBy property to specify how to pass structure elements of an array parameter.
Remarks
This option is not used for string or array parameters.
The CParamPass_ByConstPointer and CParamPass_ByConstReference values are valid only for parameters that have the Category set to one of the C++ classes
The CParamPass_ByReference value is valid only for C/C++ DLL module parameters.