CommonCParameter.StringBufferSizeExpr
- Updated2025-07-21
- 1 minute(s) read
CommonCParameter.StringBufferSizeExpr
Syntax
CommonCParameter.StringBufferSizeExpr
Data Type
Purpose
Specifies an expression that determines the buffer size for a string parameter. When you specify one of the string buffer types as the parameter type, the adapter copies the contents of the string argument and a trailing zero element into a temporary buffer before calling the function. Specify the minimum size of the temporary buffer using this property.
Remarks
If the string value is longer than the buffer size you specify, the adapter resizes the temporary buffer so it is large enough to hold the contents of the string argument and the trailing zero element. After the function returns, TestStand copies the value the function writes into the temporary buffer back to the string argument.