Computer Science Canada

blackjack/menu program

Author:  beedub [ Mon May 17, 2004 7:26 pm ]
Post subject:  blackjack/menu program

hey all, ive got a good menu program that works, except when i press play to actually play blackjack. it give me warning for the loop then displays a blank screen. the attachment is my code.

Author:  Paul [ Mon May 17, 2004 7:31 pm ]
Post subject: 

you have the warning because you have the loop after an if statement with an exit before it.
so its like this
if something then
end if

that something will never get executed, because you exited first, you see what I mean? I think u need to review ur if and loop stuff.

Author:  beedub [ Mon May 17, 2004 7:35 pm ]
Post subject: 

understood. but what should i do then? if i take out the exit the menu overlaps the getchs , and the program is screwed. if i take out of the initial loops the mouseover wont work neither will the mouse.where.

Author:  Paul [ Mon May 17, 2004 7:42 pm ]
Post subject: 

I didn't see any getchs in ur program? Confused You have the different parts of the programs in procedures, then have the intro screen in a loop, at the click of a button, it gives a value to a variable, then it exits the loop. Different procedures will run according to the value of the variable.