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: Reindexing a data file
Example: Reindexing a data file
WINDEVUser code (UMC)
This example is used to reindex a data file selected in a List Box control named LIST_FileList. A standard reindex operation is performed.
FichierARéindexer is string

// Initialisation avec l'élément en cours dans le champ Liste
FichierARéindexer = LISTE_ListeFichier[LISTE_ListeFichier]

IF YesNo("Confirmez-vous la réindexation du fichier de données ?") = Yes THEN
	// Initialiser le sablier
	HourGlass()
	// Rendre le champ Jauge visible
	JAUGE_Jauge1.Visible = True
	// Réindexer le fichier de données
	IF HReindex(FichierARéindexer, hNdxNormal, JAUGE_Jauge1) = True THEN
		// Réindexation réussie
		// Réafficher le champ Table
		TableDisplay(TABLE_Table1, taStart)
		// Désactiver le sablier
		HourGlass(False)
		Info("La réindexation du fichier de données " + ...
			FichierARéindexer + " est terminée.")
		// Rendre le champ Jauge invisible
		JAUGE_Jauge1.Visible = False
	ELSE
		// La réindexation a échoué
		Info("Problème de réindexation du fichier de données " + FichierARéindexer) 
	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