Here is a problem...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vadrian
    New Member
    • Jul 2007
    • 6

    Here is a problem...

    Now here is another problem i have.. Or should i create a new message??

    Anyways..

    ---------------------------------------------------------
    Randomize Timer

    For i = 1 To 100 Step 1

    a = Rnd() * 10 + 10
    Me.Controls("te xt" & CStr(i)).Text = Me.Controls("te xt" & CStr(a)).Text

    Next i

    -----------------------------------------------------

    I would like the random to be into a new form.. Exemple.. Form2...

    I tried this

    Randomize Timer

    For i = 1 To 100 Step 1

    a = Rnd() * 10 + 10
    Me.Controls("te xt" & CStr(i)).Text = form2.Me.Controls("t ext" & CStr(a)).Text

    But it didn't work, am i putting it at the right place or should i place it somewhere else??

    Thank you for answering.

    Vad!
  • vadrian
    New Member
    • Jul 2007
    • 6

    #2
    Dim a As Integer

    Randomize Timer

    For i = 1 To 100 Step 1

    a = Rnd() * 4 + 4
    Me.Controls("te xt" & CStr(i)).Text = Me.Controls("form2.text" & CStr(a)).Text



    Next i

    ,,,,,,,,,,,,,,, ,,,,,,,,,,

    Iv'e tried it everywhere and it says that it cant find form2.text??.te xt ....
    but i did create the second form2 there is 20 text.text bases.. and bla bla bla..

    i tried lots of different ways.. now i'm gonna throw my computer throug the window soon for it to fall about 100 feet to it's death..

    BTW I"M STILL USING VB6.. thanx

    Vad

    Comment

    Working...