corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Visual Basic help » Post Reply

Post Reply
Who Can Post? All users can post new topics and all users can reply.
Icon:
Formatting Mode:
Normal
Advanced
Help

Insert Bold text Insert Italicized text Insert Underlined text Insert Centered text Insert a Hyperlink Insert Email Hyperlink Insert an Image Insert Code Formatted text Insert Quoted text
Message:
HTML is Off
Smilies are On
BB Code is On
[img] Code is On
Post Options: Disable smileys?
Turn BBCode off?
Receive email notification of new replies?

JamesMG

posted on 26th Apr 07 at 20:34

you goin to have to be more specific tbh.. how far have u got? any errors? what controls are you using.. etc

theres a random number generator function in vb.. cant remember the syntax off top of me head but you should be able to google it

after you got a random number ull need to check that card hasnt been drawn before.. easiest way would be to assign each card an id from 1 to 52 then store the dawn cards in an array and check each time if it has been used before if so generate again

once you have done that its a case of changing the labels to the variables and perhaps calling a picture based on the random number


Dom

posted on 26th Apr 07 at 16:42

Random cards? i take it you're making a card game?


Andy_sxi

posted on 26th Apr 07 at 15:16

Ok, well I need to know how to deal random cards to four labels on a form.


Ian

posted on 26th Apr 07 at 15:05

Just post the problem.


Andy_sxi

Icon depicting mood of post posted on 26th Apr 07 at 13:03

Hi is anyone good at visual basic? Im using visual basic 6.0 and need some help as im stuck. Could you u2u me if you are able to help.

Thanks :thumbs: