Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique object reference
Message
 
 
To
21/07/2000 10:58:07
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00395437
Message ID:
00395528
Views:
8
>I've coded a class where a single grid serves as a lookup grid for multiple txtboxes. To do its job right the grid has to recognize when the "client" txtbox changes.
>So when client txtbox gets focus it would pass the reference to itself (THIS) to the grid.
>Now, everything works OK unless I use txtbox inside another grid. The problem is that all txtboxes in the same column have same THIS reference, no matter which row I'm in.
>So the question is: Is there any way to get unique reference for any object/control, plain or griddish?
>Thanks.

There is no way to differentiate between objects that I know of but you can pass additional information to define a particular textbox. In addition to passing THIS, pass the ActiveRow and ActiveColumn properties of the Grid to the method.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform