ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Emulation functions
  • Checking the function
  • Difference of message type
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Emulates the next call to Dialog and automatically clicks the button passed as parameter.
Caution: This function can only be used as part of an automation test.. In this case, the test checks whether the dialog is called and responds automatically. This function has no action when it is not used with automated tests.
Example
// Fermeture automatique du prochaine message de type Dialogue
// La réponse sur laquelle le clic aura lieu est "Enregistrer" (valeur de retour = 1)
EmulateDialog(1)

// Traitement 
// ... 
SWITCH Dialog("Souhaitez-vous enregistrer les modifications ?")
	// Enregistrer
	CASE 1
	// ...

	// Ne pas enregistrer
	CASE 2
	// ...
END
// Le message est fermé automatiquement, par un clic sur "Enregistrer"
Syntax
EmulateDialog(<Return value>)
<Return value>: Integer
Value of button in the Dialog window on which the click must be performed.
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 functions EmulateXXX must respect the display order of functions Error, Info, ... Otherwise, a fatal error will be triggered.
Component: wd300testexe.dll
Minimum version required
  • Version 11
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help