Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid order
Message
From
10/05/2016 12:17:51
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
10/05/2016 12:08:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01636103
Message ID:
01636116
Views:
56
>Add a call to oGrid.Refresh() method to refresh the grid display after changing the order; this works for me.
>
>As for adding code in an "Event" for a control, there is not a problem. For example, if you add code directly in the .Click() event for a commandbutton and then call that code somewhere else, it DOES NOT trigger the Click event of the commandbutton; it only executes the code contained in the .Click() method. The Click event is not performed by VFP only the code contained in the method. The code in the Click() event is the action that will be taken when a user clicks on the button; the code is not the action. You have to use a mouse to trigger the event (user interaction) or use RAISEEVENT() command.
>
>I know that many will have problems with this and this will trigger many responses, but I generally ignore them (same arguments with the M dot notation - some use it as gospel and some do not). In both cases (event/method and m-dot) it is important to understand how it works and take actions when there might be a problem.

If one is not understanding it, (as I think John is doing), it's not unwise to seperate the stuff. Click means Somehow Click (there is more hen one way to click a button) and SET ORDER is an action done by the click - or by something else.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform