ISMemo.SetFocus

Description

This function returns True if the focus was successfully set on the specified memo control.

Syntax

object.SetFocus()

Part Attribute Type Description
object Required
The object always implements the ISMemo interface

Return Value

bool

Returns True if the focus was successfully set on the specified memo control.

Example

Set focus on the specified memo control and display the result of the focus change.

Dim aMemo
Dim aResult

Set aMemo = Form.Controls_("memComment")
aResult = aMemo.SetFocus

Profile.MsgBox(aResult) 
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0