Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Column Click
Message
From
15/06/2005 08:12:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/06/2005 03:40:11
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Novell 5.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01023333
Message ID:
01023429
Views:
13
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform