info("focusobject")

The info(“focusobject”) function returns the name of the currently active text editor or word processor object, if any.


Description

This function returns the name of the currently active text editor or word processor object, if any. If no such object is currently being edited, the function returns empty text ("").

This example inserts the current date and time into whatever text editor object is currently being edited. This function will work with both Text Editor and Word Processor objects. The first line of the procedure checks to make sure that something is really being edited at this time).

if info("focusobject")<>""
activeobjectaction "InsertText",
    datepattern( today(),"mm/dd/yy")+"@"+
    timepattern( now(),"hh:mm am/pm")
endif

Note: In Panorama 6 and earlier, this function was called info(“activesuperobject”). The info(“activesuperobject”) function is still available for compatibility with legacy databases.


See Also


History

VersionStatusNotes
10.0NewNew in this version (however, it duplicates the functionality of the existing info("activesuperobject") function.