Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 1.26 KB

GetItemText.md

File metadata and controls

61 lines (49 loc) · 1.26 KB

GetItemText

Description

Gets the text that is contained in the given componentID.

PROCEDURE GetItemText(
				dialogID    : LONGINT;
				componentID : LONGINT;
				VAR text    : STRING);
def vs.GetItemText(dialogID, componentID):
    return text

Parameters

Name Type Description
dialogID LONGINT the dialog identifier given by CreateLayout or CreateResizableLayout
componentID LONGINT The identifier of the component that the text will be retrieved from.
text STRING The text of the component.

Examples

GetItemText(dialogID, 4, tmpStr);

1: BEGIN
	IF method = 1 THEN BEGIN
		GetItemText(dialogID, 6, tmpStr);
		OK := ValidNumStr (tmpStr, nSegs);
		IF (NOT OK) OR (nSegs < 1) THEN
		BEGIN
			Sysbeep;

END
ELSE BEGIN
	editTextID := 301 + 2*i;
	EnableItem(gCurrentDialogID, editTextID, gChangeField [fieldNum]);
	GetItemText(gCurrentDialogID, editTextID, gNewValue[fieldNum]);
END;
import vs

# Gets the text that is contained in the given componentID.
dialogID = 1
componentID = 2

result = vs.GetItemText(dialogID, componentID)

See Also

CreateEditText

Version

Availability: from Vectorworks 2010

Category