ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Example: Processing the errors and the sub-errors when saving a view in a data file
HViewToFile (Example)
Example: Processing the errors and the sub-errors when saving a view in a data file
WINDEVWEBDEV - Server codeAjaxHFSQL ClassicHyper File 5.5 The following example is used to process the different errors and sub-errors that occur when importing a view into a data file.
MaVue is Data Source
...
// Mise à jour des enregistrements de la vue dans le fichier d'origine
IF HViewToFile(MaVue) = False THEN
	// Il y a eu une erreur pendant la mise à jour du fichier
  	Info("Erreur pendant HVueVersFichier :" + HErrorInfo())
	// On affiche tous les enregistrements qui posent problème
    	nErreur is int = HError(hSubErrFirst)
	// Parcours des sous-erreurs
     	WHILE nErreur <> 0
     		// Affichage de l'erreur
   		Info(HErrorInfo() + CR + ...
			"numéro de l'enregistrement dans la vue :" + ...
    			HErrorInfo(hErrRecNum))
   		// Sous-erreur suivante
   		nErreur = HError(hSubErrNext)
  	END
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help