Get data from a popup window invoked by a call to exittopopup() in a preceding pass of an analyzer.
return_str = getpopupdata()
return_str - Data the user typed into the popup window
The data from user type-in.
The Database1 sample analyzer illustrates use of this function to interactively query a database. The interactive() function is useful for determining if the analyzer is running inside VisualText or not.
# A pass of the analyzer.
@CODE
if (interactive())
exittopopup("Enter database statement:","askfortext");
@@CODE
# A subsequent pass of the analyzer.
@CODE
if (interactive())
G("command") = getpopupdata();
else
G("command") = "SELECT * FROM table33;";
@@CODE