Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bindevent Problems
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00806287
Message ID:
00806368
Views:
17
Hi Michael,

My first hunch is one of the following scenarios:
1) the Click event of the *grid* is firing instead of the Click event in the TextBox; or
2) since Click is an EVENT, not a method, and BindEvent expects a *method name* as a delegate, the BindEvent may be looking for the Click() method (which doesn't exist) and, since it can't find it, it's doing nothing.

My instinct says that #2 is the issue. Fortunately, that's easy to test.

Here's how: put the code that exists in the CommandButton's Click event in another (custom) method of the command button (the OnClick() method, for instance). Then, in the CommnandButton's Click event, make a call to your custom method (ie, THIS.OnClick() ). Then, in your BindEvent(), change the last "Click" to "OnClick". This would eliminate the #2 issue above.

HTH.

>Hi,
>
>I just got 8.0 and one of the features I am having trouble grasping is Bindevents().
>
>BINDEVENT(THISFORM.PGfInvestmentUpdate.Page2.GRdInvestmentDay.InvNumberColumn.InvNumberText;
>,"Click",ThisForm.pgfInvestmentUpdate.Page2.cmdEditTransaction;
>,"Click")
>The previous code has been placed in the Init method of a grid.
>
>
>I am trying to Bind the Click Method of the cmdEditTransaction button to the Textbox in a grid that has traditionally lost all formatting on a refresh of the grid.
>
>I don't get an error but the click method of the button is not called when I click on the TextBox.
>
>Any help would be greatly appreciated.
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Reply
Map
View

Click here to load this message in the networking platform