Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding code to events programmatically
Message
From
09/02/2016 13:52:49
 
 
To
09/02/2016 13:39:36
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01631115
Message ID:
01631123
Views:
70
I think you're missing the question, Craig - the code isn't changing at runtime. In the form designer I will place an object, then go to the events, and put the code in there, but adding an object at runtime, like a listbox, is there nowhere I can add code that runs every time it is clicked? As in the Click event of the object in the form designer...

As in something along the lines of:
Object.Click
do this
do that
do the other thing
endobject.click

Google isn't giving me anything useful. I saw proc/endproc, but nothing I could copy in and fill my stuff into, and where would I put it?

The problem is I use a small SQL Select into a cursor, and the ListBox uses that doe it's data, but if I have the ListBox there already, even if it has no RowSource, or RowSourceType, I get error 1130's up the yin yang in methods that don't exist, and in lines that I have no idea where they come from. It is just nuts. Put the listbox in on hte form designer, and it bombs. Add it programatically, and it works fine. All I need is a where, and how to put a click event for it...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform