>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:
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)