HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

SetValue

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);

Parameters

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.

Returns

The return value is TRUE if the value was set successfully.

Comments

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


Last Updated 08/30/2026 - (email)
© 2026 Softel vdm, Inc.