PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Principle
  • First method: ReturnToCapture or SetFocus function
  • Second method: ScreenFirst function
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
Principle
Two methods can be used to give focus to a control:
First method: ReturnToCapture or SetFocus function
ReturnToCapture (or SetFocus) gives focus to the specified control and it allows you to go back in edit to the window without running the WLanguage code found after the call to the function.
Code example:
IF EDT_CODE = "" THEN
ReturnToCapture(EDT_CODE)
// Code not run
ELSE
ReturnToCapture(EDT_TITLE)
// Code not run
END
// Code not run
Second method: ScreenFirst function
ScreenFirst is used to store the control that will take focus. The WLanguage code that follows the call to the function continues to run. This allows you to change the control on which you want to be positioned before going back in edit to the window.
Code example:
// Depending on returns of processes 1 and 2
// position at the end of process on EDT_QTY or EDT_DISCOUNTCODE control

// Run process part 1
...
IF nResPart1 = 0 THEN ScreenFirst(EDT_QTY)
...
// Run process part 2
...
IF bResPart2 = False THEN ScreenFirst(EDT_DISCOUNTCODE)
...
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment