PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Checking the function
  • Difference of message type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Emulates the next call to OKCancel and automatically clicks the button passed as parameter.
Example
// Fermeture automatique de la prochaine boîte de dialogue OKAnnuler
// La réponse sur lequel le clic aura lieu est Ok
EmulateOKCancel(True)
 
// Traitement
// ...
 
SWITCH OKCancel("Souhaitez-vous enregistrer les modifications?")
CASE True
// Enregistrement des modifications
CASE False
// Annulation des modifications
END // Le message est fermé automatiquement, par un clic sur Ok
Syntax
EmulateOKCancel(<Button>)
<Button>: Integer constant
Indicates the button of the OKCancel window on which the click must be performed:
FalseClick on the button [ CANCELER]
TrueClick on the button [ OK]
Remarks

Checking the function

The existence of an emulating function (EmulateWarning, EmulateError, EmulateInfo, ...) is checked during the call to the associated dialog function (Warning, Error, Info, ...).

Difference of message type

The order of the EmulateXXX functions must respect the display order of Error, Info, ... Otherwise, a fatal error will occur.
Component: wd270testexe.dll
Minimum version required
  • Version 11
Comments
Click [Add] to post a comment