Phantom Documentation

[Help Home] [Phantom Home]
GetText

sText = window.GetText();

Applicable Classes:
Edit, ComboBox, ListBox, MainWin, Static

Parameters: None
Return Value:
string sText - Receives the text located in Window.


Description:
GetText retrieves the current text in the control or window. For an edit box, a button, or a static label, this is the text displayed. For frame type windows, this is the title (tag) of the window

Example Code

string sText;
System("c:\\windows\\system32\\Notepad.exe");

window Notepad = MainWin("Notepad*", "Notepad");
window Edit = Notepad.MainWin(1, "Edit");

Edit.TypeKeys("Hello");

sText = Notepad.GetText();
disp(sText);

sText = Edit.GetText();
disp(sText);



See Also: Edit Functions, MainWin Functions, SetText



Copyright 2000-2011 Phantom Automated Solutions