|
-
October 14th, 2003, 05:28 PM
#1
whats wrong wit my code?
this is friends code but i am having problems with it too!
Option Explicit
Public strHidden As String
Private Sub cmdHide_Click()
strHidden = txtHide.Text
txtHide.Text = ""
frmShow.Show
End Sub
*********************
Option Explicit
Private Sub cmdShow_Click()
txtShow.Text = strHidden
End Sub
[Cimperiali: title changed to make it related to question]
Last edited by Cimperiali; October 15th, 2003 at 02:51 AM.
-
October 14th, 2003, 05:54 PM
#2
What exactly are you changing?
-squaK
-
October 14th, 2003, 05:57 PM
#3
im trying to make txtHide.Text and txtshow.text the same text
-
October 14th, 2003, 06:17 PM
#4
It works fine for me.
Create a module, paste this into the module
Code:
Option Explicit
Public strHidden As String
Create a form (form1), add a text box & a command button called by the obvious names, add this code to it.
Code:
Option Explicit
Private Sub cmdHide_Click()
strHidden = txtHide.Text
txtHide.Text = ""
frmShow.Show
End Sub
Create another form (frmShow), add a text box and command button, then add this code.
Code:
Option Explicit
Private Sub cmdShow_Click()
txtShow.Text = strHidden
End Sub
Now, do ctrl-f5, type some text into txtHide, and click the button.
When frmShow is displayed, click the cmdShow button, and the text appears.
Be nice to Harley riders...
-
October 14th, 2003, 06:29 PM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|