General information
Category:
Object Oriented Programming
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only