Results 1 to 3 of 3

Thread: change on the form but ... way ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Location
    jeddah
    Posts
    9

    Question 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 ?

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Make L1, L2, L3, L4, L5 all public. They are private by default. You can then do what I think your trying to do.

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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
  •  



Click Here to Expand Forum to Full Width