SetControlValue 

BOOL SetControlValue (long Index, LPCSTR Value)

Parameters

Index

Index of control that is having its value set

Value

The new value of the control, represented as a text string

Return Value

Returns TRUE on success, FALSE on error.

Comments

A shortcut for Controls.Item(Index).Value = Value, for optimizing OLE Automation usage.