Click here to Skip to main content
15,891,006 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Need help in reading RSS feed and storing Pin
Dave Kreskowiak10-Apr-09 2:48
mveDave Kreskowiak10-Apr-09 2:48 
GeneralRe: Need help in reading RSS feed and storing Pin
Surej7010-Apr-09 8:48
Surej7010-Apr-09 8:48 
AnswerRe: Need help in reading RSS feed and storing Pin
Surej7011-Apr-09 9:10
Surej7011-Apr-09 9:10 
QuestionPostedFile Is Nothing on DataGrid File Upload Pin
dstrube9-Apr-09 11:27
dstrube9-Apr-09 11:27 
AnswerRe: PostedFile Is Nothing on DataGrid File Upload Pin
Dave Kreskowiak10-Apr-09 2:47
mveDave Kreskowiak10-Apr-09 2:47 
Questionapplication/website required Pin
sahil sherwani9-Apr-09 11:14
sahil sherwani9-Apr-09 11:14 
AnswerRe: application/website required Pin
Mycroft Holmes9-Apr-09 22:31
professionalMycroft Holmes9-Apr-09 22:31 
QuestionNeed Help with Shuffle of a deck Pin
ymilan9-Apr-09 10:44
ymilan9-Apr-09 10:44 
Hi,

I'm shuffling a deck of cards, but seem to keep getting more than one of the same card, after the shuffle. So, I tried quite a bit trying to set the value of the card to not equal the subnum of the card, but it didn't work. Any ideas would be much appreciated. Thanks. Here's part of the code:

Private Sub Start_Click()

Dim arrDeck(52)
Randomize
CardCount = 1

Do While CardCount < 53
arrDeck(CardCount) = -1
CardCount = CardCount + 1
Loop

CardCount = 1
Counter = 0

Do While CardCount < 53 And Counter < 53
3 CardVal = Int((52 * Rnd) + 1)



If arrDeck(CardVal) = -1 Then
arrDeck(CardVal) = CardCount
Subnum = Counter
Image1(Subnum) = Image1(CardVal)
Image1(Subnum).Visible = True
CardCount = CardCount + 1
Counter = Counter + 1
Else: GoTo 3

End If
Loop

End Sub
AnswerRe: Need Help with Shuffle of a deck Pin
Dalek Dave9-Apr-09 12:28
professionalDalek Dave9-Apr-09 12:28 
GeneralRe: Need Help with Shuffle of a deck Pin
ymilan10-Apr-09 5:02
ymilan10-Apr-09 5:02 
AnswerRe: Need Help with Shuffle of a deck Pin
Dave Kreskowiak10-Apr-09 2:40
mveDave Kreskowiak10-Apr-09 2:40 
GeneralRe: Need Help with Shuffle of a deck Pin
ymilan10-Apr-09 4:59
ymilan10-Apr-09 4:59 
GeneralRe: Need Help with Shuffle of a deck Pin
Dave Kreskowiak10-Apr-09 7:11
mveDave Kreskowiak10-Apr-09 7:11 
GeneralRe: Need Help with Shuffle of a deck Pin
ymilan10-Apr-09 8:31
ymilan10-Apr-09 8:31 
AnswerRe: Need Help with Shuffle of a deck Pin
riced10-Apr-09 3:55
riced10-Apr-09 3:55 
GeneralRe: Need Help with Shuffle of a deck Pin
ymilan10-Apr-09 5:10
ymilan10-Apr-09 5:10 
GeneralRe: Need Help with Shuffle of a deck Pin
ymilan10-Apr-09 5:35
ymilan10-Apr-09 5:35 
GeneralRe: Need Help with Shuffle of a deck Pin
riced10-Apr-09 5:44
riced10-Apr-09 5:44 
GeneralRe: Need Help with Shuffle of a deck Pin
ymilan10-Apr-09 6:15
ymilan10-Apr-09 6:15 
GeneralRe: Need Help with Shuffle of a deck Pin
riced10-Apr-09 7:15
riced10-Apr-09 7:15 
GeneralRe: Need Help with Shuffle of a deck Pin
ymilan10-Apr-09 8:34
ymilan10-Apr-09 8:34 
GeneralRe: Need Help with Shuffle of a deck Pin
riced10-Apr-09 8:50
riced10-Apr-09 8:50 
GeneralRe: Need Help with Shuffle of a deck Pin
ymilan10-Apr-09 8:46
ymilan10-Apr-09 8:46 
GeneralRe: Need Help with Shuffle of a deck Pin
riced10-Apr-09 8:58
riced10-Apr-09 8:58 
GeneralRe: Need Help with Shuffle of a deck Pin
ymilan10-Apr-09 8:59
ymilan10-Apr-09 8:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.