General information
Category:
Forms & Form designer
>A form method gridmousedown() is used to set forecolor and backcolor of a grid sell. Since the code for different columns is the same, I use this method with parameter SYS(1272,THIS).
So I assume its something like: GridMouseDown(sys(1272, this)
and GridMouseDown() does some Macro expanding to set the properties?
If so, you can do it like this, call GridMouseDown(), like this:
GridMouseDown(this)
Now, GridMouseDown() shoudl except one parameter and change the properties of it like so:
lparameters toObject
toObject.ForeColor = rgb(0, 0, 0)
toObject.BackColor = rgb(255, 255, 255)
This way, you are passing a reference to the object directly, and never need to worry about the name of it.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only