info(“windowoptions”)

The info(“windowoptions”) function returns the names of any currently enabled window options,


Description

This function returns the names of any currently enabled window options. The available options are:

notoolbar
novertscroll
nohorzscroll

This procedure checks to see if the current window has a toolbar. If so, it simply deletes the current record. If there is no tool bar it asks for confirmation before deleting the record.

if info("windowoptions") notcontains "toolbar"
    alertnoyes "Are you sure you want to delete?
     if info("dialogtrigger") contains "no" rtn endif
endif
deleterecord

See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but now returns notoolbar instead of nopalette if the tool bar is invisible.