those bloody textboxes taht we love

shortskirts
06-15-2006, 04:50 PM
Hey guys,

THE SITUATION!!

I have loads of SMALL text boxes on my form. I also have a LARGE textbox. I need a code to assign to a cmd button that will copy the contents of each of the SMALL textbox onto the LARGE text box.

I understand the consept wif picture boxes ( & text1.text &) but i am really puzzled here. Any help is as always most appreciated.

thank you

passel
06-15-2006, 04:57 PM
If you had a control array of textboxes, you could just loop and append the text from the smaller textboxes to the larger.

Depending on how you wanted the data added, I would just clear the big box, then use seltext to append.

Dim I as Long

txtBigBox.Text = ""

For I = 0 to 10
txtBigBox.SelText = txtSmallBox(I).Text
Next

shortskirts
06-15-2006, 06:01 PM
Thats helped me a great deal ty

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum