ClosePopupWithResult |
Type | statement |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | close popup [ returning <Result> ]
|
Associations | com.livecode.widget |
Summary | Closes the current widget popup.
|
Parameters | Name | Type | Description |
---|
Result | | An expression that evaluates to any type. The result of popping up this widget.
|
|
Example | variable mSelected
public handler OnClick()
variable tOption
put getOptionAtPosition(the click position) into tOption
if tOption is not empty then
put tOption into mSelected
if currently popped up then
if mSelected is "Cancel" then
close popup
else
close popup returning mSelected
end if
end if
end if
end handler
private handler getOptionAtPosition(in pPosition as Point) returns String
...
end handler
|
Related | Statement: PopupWidget
Expression: IsPoppedUp
|
Description | Use to close the current popup, and optionally set a return value for the PopupWidget statement that launched it.
|
Tags | widget |