SetControlSelected 

BOOL SetControlSelected (long Index, BOOL Selected)

Parameters

Index

Index of control that is being selected or de-selected.

Selected

TRUE if the control (a radio button or check box) is to be selected, FALSE if it is to be de-selected.

Return Value

Returns TRUE on success, FALSE on error.

Comments

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