|
-
Oct 26th, 2002, 05:43 AM
#1
Thread Starter
New Member
change on the form but ... way ?
public Language As String
private Sub x ()
Dim frm As New Form1()
Language = "numaric"
frm.L1.Text = IIf((Language = "English"), "First", "1")
frm.L2.Text = IIf((Language = "English"), "Second", "2")
frm.L3.Text = IIf((Language = "English"), "Thard", "3")
frm.L4.Text = IIf((Language = "English"), "Fourth", "4")
frm.L5.Text = IIf((Language = "English"), "Fivth", "5")
End Sub
'''''''''''''''''''''''''''''
L1 to L5 (Labels) on the form
i want to change some values on the Active form by using
Dim frm As New Form1()
when i call this sub nothing is change ! way ?
-
Oct 26th, 2002, 06:04 PM
#2
PowerPoster
Make L1, L2, L3, L4, L5 all public. They are private by default. You can then do what I think your trying to do.
-
Oct 26th, 2002, 07:04 PM
#3
Either that or you aren't talking about changing the values of the form you created with New Form1. If you mean that there is already a form open and you want to change its values then that wont work. When you call New Form1 you are creating a NEW form and then changing the values on it. Do a search and you should find lots of different ways of accessing an already opened forms properties.
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
|