Results 1 to 7 of 7

Thread: [VB6] Well... just help... lmao

  1. #1

    Joined
    Dec 2011
    Posts
    843
    Pronouns
    she/her
    Userbars
    3
    Thanks
    313
    Thanked
    346/213
    DL/UL
    34/2
    Mentioned
    179 times
    Time Online
    1d 19h 11m
    Avg. Time Online
    N/A

    [VB6] Well... just help... lmao

    You hit start, and then my log enters, started gambling, then flashes quickly to done gambling..

    Not only that, but Label7 will not show.

    Also, I know my post data is correct, but it will not show any of the eggs that were picked, that won, or the ones that were correct.

    Code:
    Hiding code from thieves lol
    Thanks Soredavide!
    PS +3 rep to the person that finds the error. I have been over the code literally 1000000000000000000100000000000000000000 times.
    Last edited by Ashleys165; 04-14-2012 at 09:15 PM.

  2. #2

    Joined
    Dec 2011
    Posts
    151
    Userbars
    2
    Thanks
    4
    Thanked
    165/45
    DL/UL
    14/9
    Mentioned
    68 times
    Time Online
    6d 17h 26m
    Avg. Time Online
    2m
    Do Until c = Text
    You are not setinng any value for Text so C = 0 and Text = 0, it goes straight to
    Loop
    log.AddItem "Done Gambling"

    Where are you setting the values for any of the Text values; you have them as integers (but never enter a value). You may want ot change the names, textboxes also use that name.
    Last edited by Soredavide; 04-14-2012 at 08:50 PM.

  3. #3

    Joined
    Dec 2011
    Posts
    843
    Pronouns
    she/her
    Userbars
    3
    Thanks
    313
    Thanked
    346/213
    DL/UL
    34/2
    Mentioned
    179 times
    Time Online
    1d 19h 11m
    Avg. Time Online
    N/A
    I probably should have said that text is a textbox. '~'

  4. #4

    Joined
    Dec 2011
    Posts
    151
    Userbars
    2
    Thanks
    4
    Thanked
    165/45
    DL/UL
    14/9
    Mentioned
    68 times
    Time Online
    6d 17h 26m
    Avg. Time Online
    2m
    Why are you dimming them as integers, and what is Text (it has no value)
    They can't be dimmed or they can't be used as a textbox. What happens if in your code you type Text1. (youshould see the autocomplete for a textbox)?
    Last edited by Soredavide; 04-14-2012 at 08:54 PM.

  5. #5

    Joined
    Dec 2011
    Posts
    843
    Pronouns
    she/her
    Userbars
    3
    Thanks
    313
    Thanked
    346/213
    DL/UL
    34/2
    Mentioned
    179 times
    Time Online
    1d 19h 11m
    Avg. Time Online
    N/A
    Should I not dim them as integers? I put it that way because I need to keep count of many things.. I probably don't need all of them, but I did it anyway... I'll check out what each one does.

    Text is a text box that you choose the number of games to play.

  6. #6

    Joined
    Dec 2011
    Posts
    151
    Userbars
    2
    Thanks
    4
    Thanked
    165/45
    DL/UL
    14/9
    Mentioned
    68 times
    Time Online
    6d 17h 26m
    Avg. Time Online
    2m
    It is dimmed as an Integer, it has no value. put a ' (comment or just delete the dim statements) in front of the the dim statement and if you have a textbox named Text, type Text (you should get the autocomplete, Text.Text). The loop will then work from c = what value is in the textbox Text. All builtin components do not require a dim statement and using the component name and a period will show all of the available options to that component (Text1. list1. command1. label1.)
    Last edited by Soredavide; 04-14-2012 at 09:07 PM.

  7. #7

    Joined
    Dec 2011
    Posts
    843
    Pronouns
    she/her
    Userbars
    3
    Thanks
    313
    Thanked
    346/213
    DL/UL
    34/2
    Mentioned
    179 times
    Time Online
    1d 19h 11m
    Avg. Time Online
    N/A
    Thanks both of you, I didn't run into it though Mike.

    Soredavide, you can tell I still have a lot to learn lol I over thought it -_- Now my program is nearly complete! :3 +Rep

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •