GetText method


Available for Window, MDIWindow, DialogBox, Static, Edit, Group, Button, Check, and Radio objects.

Syntax

Invoke GetText, hWnd, lpszBuffer

Function

Gets the Text property for an object.

Parameters

hWnd

Handle to the object.

lpszBuffer

Pointer to a buffer to receive the text for the object.

Return value

Eax returns the length, in characters, for the text of the object.


REMARKS
: For Window, MDIWindow and DialogBox objects this method copies the text of its caption (title bar) to the specified buffer, while for control objects it copies the text shown in the client area of the control. The buffer pointed by lpszBuffer must be large enough to contain the text of the object (max. 256 characters).