Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference in clicking
Message
From
15/02/2016 10:02:23
 
 
To
15/02/2016 09:55:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01631466
Message ID:
01631468
Views:
87
The textbox should not call the button click. Move the code from the button click into a method on the form and have both the textbox and button call that. I don't know if it will solve the problem, but it's better OOP-wise and may fix things.

>There appears to be a difference in physically clicking a button with the mouse, and doing it programmatically, as in thisform.thatbutton.click. Can anyone please explain this to me?
>
>I have a textbox that a search string is typed into. To make it more convenient for the user, so they don't have to actually use the mouse, I have the following in the KeyPress method:
>
>IF nKeyCode=13 &&the 'enter' key
>	thisform._searchcmd.Click
>ENDIF
>
>
>The code in thisform._searchcmd.click is accessed, and run, but the cursor holding the SQL Select(ed) data is empty. Physically click the _searchcmd button, and the data is there...
>
>Thanks.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform