
-----------------------------------
beedub
Mon May 17, 2004 7:26 pm

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.

-----------------------------------
Paul
Mon May 17, 2004 7:31 pm


-----------------------------------
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
exit
something
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.

-----------------------------------
beedub
Mon May 17, 2004 7:35 pm


-----------------------------------
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.

-----------------------------------
Paul
Mon May 17, 2004 7:42 pm


-----------------------------------
I didn't see any getchs in ur program?  :?  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.
