PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • Copying the form data
  • Pasting the form data
  • Notes
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
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.
Notes
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 required version
  • Version 15
Comments
Click [Add] to post a comment