KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Retrieve a reference to the current form window
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: December 16, 2004
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

A new command in 4D 2004 is Current form window. This command will return a window reference number to the current form.

This command is useful in that you are able to tell with which form a user is interacting. For example, suppose you open a form using Open form window and DIALOG.

You can use this command anywhere on the form to find out its reference:

myWindow:=Current form window

Now you can use that variable to manipulate that window from any other place in that current process.