closeactiveobject

The closeactiveobject statement closes any object whose text is currently being edited.


Parameters

No parameters.


Description

This statement closes any object whose text is currently being edited. If nothing is being edited, this statement does nothing. The closeactiveobject statement is equivalent to:

if info("activeobject") <> ""
    activeobjectaction "close"
endif

However, unlike the code above, the closeactiveobject statement also works in the data sheet.

This example makes sure that editing is finished before saving the file.

closeactiveobject
save

See Also


History

VersionStatusNotes
10.2UpdatedNow works with pop-up text editing as well as normal text editor objects, in both the data sheet and forms.
10.0No ChangeCarried over from Panorama 6.0, but has been renamed (this was formerly called the superobjectclose statement).