The LEADTOOLS C++ Class Library is a wrapper to the LEADTOOLS C API and provides only a subset of the features and functionality otherwise available in the LEADTOOLS C API. For more information about the full feature set of the LEADTOOLS C API, refer to LEADTOOLS C API Introduction.
Is this page helpful?
Gets the length of the string at the specified index.
#include "ltwrappr.h"
static L_INT LDialogBase::GetStringLen(uString, puLen)
Index into a list of strings. For a list of the strings, refer to Dialog Strings.
Pointer to an unsigned integer variable that this function will update with the length of the item's current character string.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Once you know the length of the string at the specified index, retrieve the text by calling LDialogBase::GetString.
Use LDialogBase::SetString to modify the text.
Before calling this function, you must declare an unsigned integer variable. Then, pass the address of the variable in the puLen parameter. This function will update the variable with the length of the automation item's character string.
For an example, refer to LDialogBase::SetFont.