Simplicty and flexibility!


Function::Internal

DocumentCloseName
DocumentCloseName(DocumentName)
DocumentCloseName("Full Windows Document Name i.e. Caption"
DocumentCloseName("Customers")
DocumentClsoeName("Customers via Orderform")
DocumentCloseName("DESIGN FORM : Customers")
retval := DocumentCloseName(data-entry fie


To close a document by "remote". Many times when you have open a form for information or run a report/procedure with output, you want that document to be closed. If focus has been returned to another document this is not always straight forward so we have added DocumentCloseName() so you can close a document from anywhere in an app.

If the document in name is already closed or does not exist no action will be taken, and no error message returned.

Parameters


DocumentName : Text

This is the full name of the document you want to close. It is not necessarily the original form/report name as it can have been added to by you opening a document via another document.

Returns/Result


String, nothing!

Examples


Reference

See Also


DocumentClose()
DocumentOpen()

On the forum about DocumentCloseName

On the blog about DocumentCloseName

New Function in 8 - DocumentCloseName() - Close a named document remotely (Ver. 8.1.1.1444)

First new function in a while, but one of many to come.We are opening up DE8 from a programmers perspective and we want to give the programmer as much control as possible on how the application is managed and behave.All of us that has t...

Product: Dataease [{8}]FIVE. Written by DataEase 15/01/14 at 09:14:10


dg3_HelpView