Forum Moderators: open

Message Too Old, No Replies

copy and past to clipboard all text controls

a VB question.

         

weblamer2

7:33 pm on Mar 24, 2003 (gmt 0)

10+ Year Member



Hello,

I have a database app. that I wrote. There are about 60 text boxes on this app. Sometimes the program crashes when people are entering data. I was wondering, is there a way to copy the info from all text boxes on a form into the system clipboard, and then paste them all back?

I know how to do this with indvidual text boxes, but not everything on a form.

Any suggestions?

txbakers

7:39 pm on Mar 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure what you are after, but once a user clicks submit, all the form data is kept in the Request object.

You can use that Request object recursively and show it on the same page if you need to.

By copy and paste, do you mean after a browser is closed and reopened? It's doable, but it would be a mess I would think.

chicagohh

8:59 pm on Mar 24, 2003 (gmt 0)

10+ Year Member



You *should* be able to do it while a user is filling out the form, but I agree with txbakers in that it would be messy.

If the form is crashing with just 60 fields (which should not be causing problems) running javascript in the background could add even more problems.

Look into documentElement.innerHTML in javascript. I have done something vaguely similar and I started there.

Joe