> > I am creating a number of text Boxes at run time using "AddOBJECT". Each Textbox has a different name. How do I dynamically add a few lines of code to the click event of each textbox. The code will be different fof each textbox and may many lnes of code. Can I do that? Please give me an example.> > > > Thanks in advance;> > > > Paul D'Anna> > Like Mike noted,> It's generally not needed. > Anyway if you really need it write your class code at runtime to a file, compile (VFP6 SP3 and later) and newobject() from there.> BindEvent() would work the same way.> > For example (not tested):> >