Sets the value of a numeric input field or a mask variable.
C
BOOL SftMask_Contents_SetValue(HWND hwndCtl, short index, const VARIANT* lpVar);
C++
BOOL CSftMask::SetValue(short index, const VARIANT* lpVar);
hwndCtl
The window handle of the masked edit control.
index
The zero-based index of the numeric input field, or the variable number defined using the !number value token (see Edit Masks).
lpVar
The address of a VARIANT with the new value.
The return value is TRUE if the value was set successfully.
The value is validated against the field definition (digits, range). Using value tokens, portions of the input data can be modified without knowing the exact character positions.
See Also GetValue | SetDateTime | Edit Masks