PDA

View Full Version : [VB6] Well... just help... lmao



Ashleys165
04-14-2012, 07:42 PM
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.


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.

Soredavide
04-14-2012, 08:42 PM
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.

Ashleys165
04-14-2012, 08:49 PM
I probably should have said that text is a textbox. '~'

Soredavide
04-14-2012, 08:52 PM
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)?

Ashleys165
04-14-2012, 08:57 PM
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.

Soredavide
04-14-2012, 09:01 PM
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.)

Ashleys165
04-14-2012, 09:13 PM
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