Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column Click
Message
De
15/06/2005 08:12:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
15/06/2005 03:40:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Novell 5.x
Database:
Visual FoxPro
Divers
Thread ID:
01023333
Message ID:
01023429
Vues:
12
>It works...thanks a lot
>
>Best regards
>Winarto

OK. One more thing: Before actually changing the column order - just as before many other actions - you should check if there are pending changes, and ask the user if he wants to save them. For example:
* Grid.Header.DblClick()
if not ThisForm.PendingChanges() or ThisForm.AskToSave()
  set order to "xyz"
  go top
endif
I am assuming you have custom form methods that do the following:

PendingChanges() - returns .T. if there are unsaved changes.

AskToSave() - asks the user if he wants to save changes. Returns .F. if the user presses the "Cancel" button.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform