Andy_sxi
Member
Registered: 28th Aug 04
Location: West Midlands Drives: 1.2 16v SXi
User status: Offline
|
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
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Online
|
Just post the problem.
|
Andy_sxi
Member
Registered: 28th Aug 04
Location: West Midlands Drives: 1.2 16v SXi
User status: Offline
|
Ok, well I need to know how to deal random cards to four labels on a form.
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
Random cards? i take it you're making a card game?
|
JamesMG
Member
Registered: 14th Nov 06
Location: Newcastle-under-Lyme, Staffordshire
User status: Offline
|
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
|