Results 1 to 7 of 7

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

  1. #1
    Dino Sherlockian
    Join Date
    Dec 2011
    Gender
    Location
    America
    Age
    18
    Posts
    844
    Thanks
    315
    Thanked 341 Times in 208 Posts


    Downloads
    34
    Uploads
    2
    Mentioned
    179 Post(s)
    Time Online
    1 d 16 h 55 m
    Avg. Time Online
    1 m
    Rep Power
    8

    [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.



    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 10:15 PM.

  2. #2

    Join Date
    Dec 2011
    Gender
    Posts
    143
    Thanks
    3
    Thanked 161 Times in 44 Posts


    Downloads
    14
    Uploads
    9
    Mentioned
    64 Post(s)
    Time Online
    5 d 21 h 53 m
    Avg. Time Online
    4 m
    Rep Power
    7
    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 09:50 PM.

  3. #3
    Dino Sherlockian
    Join Date
    Dec 2011
    Gender
    Location
    America
    Age
    18
    Posts
    844
    Thanks
    315
    Thanked 341 Times in 208 Posts


    Downloads
    34
    Uploads
    2
    Mentioned
    179 Post(s)
    Time Online
    1 d 16 h 55 m
    Avg. Time Online
    1 m
    Rep Power
    8
    I probably should have said that text is a textbox. '~'

  4. #4

    Join Date
    Dec 2011
    Gender
    Posts
    143
    Thanks
    3
    Thanked 161 Times in 44 Posts


    Downloads
    14
    Uploads
    9
    Mentioned
    64 Post(s)
    Time Online
    5 d 21 h 53 m
    Avg. Time Online
    4 m
    Rep Power
    7
    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 09:54 PM.

  5. #5
    Dino Sherlockian
    Join Date
    Dec 2011
    Gender
    Location
    America
    Age
    18
    Posts
    844
    Thanks
    315
    Thanked 341 Times in 208 Posts


    Downloads
    34
    Uploads
    2
    Mentioned
    179 Post(s)
    Time Online
    1 d 16 h 55 m
    Avg. Time Online
    1 m
    Rep Power
    8
    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

    Join Date
    Dec 2011
    Gender
    Posts
    143
    Thanks
    3
    Thanked 161 Times in 44 Posts


    Downloads
    14
    Uploads
    9
    Mentioned
    64 Post(s)
    Time Online
    5 d 21 h 53 m
    Avg. Time Online
    4 m
    Rep Power
    7
    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 10:07 PM.

  7. #7
    Dino Sherlockian
    Join Date
    Dec 2011
    Gender
    Location
    America
    Age
    18
    Posts
    844
    Thanks
    315
    Thanked 341 Times in 208 Posts


    Downloads
    34
    Uploads
    2
    Mentioned
    179 Post(s)
    Time Online
    1 d 16 h 55 m
    Avg. Time Online
    1 m
    Rep Power
    8
    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
  •