Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I receive a full name of control?
Message
From
21/08/2000 13:20:40
 
 
To
21/08/2000 11:36:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00407278
Message ID:
00407403
Views:
22
>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
Map
View

Click here to load this message in the networking platform