Help with control

napjones

New member
Local time
Yesterday, 21:40
Joined
Oct 5, 2005
Messages
7
Good morning,

I have searched for this for about 2 days and couldnt find anything. I am trying to write a function for the double click event of about 15 labels on my form. What I want to do is when the user double clicks the label I want it to
pass the labels name to the function so that it pops up an input box the user enters a value and then the function sets that value as the labels caption.
 
Can you not pass the actual control as a parameter and have the function change it directly without going through all that other garbage? You should be able to pass it as either a control or object type I would think. Then modify the CAPTION property directly in the passed instance of the control.
 
screen.ActiveControl and screen.PreviousControl may help
 
In my *very* limited experience of using <control>.Caption = "...", the new caption is not saved when the form is closed.

Have I missed a trick here?
Rod
 

Users who are viewing this thread

Back
Top Bottom