Home | Sign in | English UK
  • Overview
  • Copying the form data
  • Pasting the form data
  • Remarks
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
When typing several copies of a form one after another, some of the information to type may be the same for each instance of the form. For example, when typing a set of articles, the name and reference of the articles change each time but the name of the supplier may remain the same during several entries.
To speed up the operations, you can ask the current window to copy the information entered in the different controls into the clipboard in order to paste it whenever a new input is performed.
Copying the form data
To copy the data from the current window into the clipboard, use:
  • The "Copy the form" option from the popup menu of the window.
  • The Ctrl + Alt + C shortcut.
  • WinCopyForm.
  • ExecuteAAF as follows:
    ExecuteAAF(MyWindow, aafCopyForm)
Pasting the form data
To paste the data found in the clipboard into the current window, use:
  • The "Paste the form" option from the popup menu of the window.
  • The Ctrl + Alt + V shortcut.
  • WinPasteForm.
Only the controls in edit in the window are modified when pasting a form. The read-only controls or the grayed controls keep their values.
All the controls are copied into the clipboard when copying a form. You can paste the result in a notepad for example. On the contrary, you cannot copy text from a notepad to paste it in a window.
During the paste operation, no process is run (modification process or exit from control for example). The window is not informed that the values of its controls have changed. If this automatic feature is enabled in an application, you must check the validity of the controls when validating the window (and not in control exit).
Minimum version required
  • Version 15
Click [Add] to post a comment