Click here to Skip to main content
16,005,389 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Question about threads Pin
Dave Kreskowiak8-Nov-09 13:25
mveDave Kreskowiak8-Nov-09 13:25 
GeneralRe: Question about threads Pin
crashcup8-Nov-09 14:18
crashcup8-Nov-09 14:18 
GeneralRe: Question about threads Pin
Dave Kreskowiak8-Nov-09 14:50
mveDave Kreskowiak8-Nov-09 14:50 
GeneralRe: Question about threads Pin
crashcup8-Nov-09 15:09
crashcup8-Nov-09 15:09 
GeneralRe: Question about threads Pin
Dave Kreskowiak9-Nov-09 2:10
mveDave Kreskowiak9-Nov-09 2:10 
QuestionSorting an Array ASCENDING ORDER Pin
PAguilar098-Nov-09 9:31
PAguilar098-Nov-09 9:31 
AnswerRe: Sorting an Array ASCENDING ORDER Pin
Luc Pattyn8-Nov-09 9:40
sitebuilderLuc Pattyn8-Nov-09 9:40 
AnswerRe: Sorting an Array ASCENDING ORDER Pin
Luc Pattyn8-Nov-09 10:06
sitebuilderLuc Pattyn8-Nov-09 10:06 
PAguilar09 wrote:
For count = 0 To ShuffleCards.cards2.Length - 1
For j = count + 1 To ShuffleCards.cards2.Length - 1
If ShuffleCards.cards2(count) > ShuffleCards.cards2(j) Then
ShuffleCards.cards2(count) = ShuffleCards.cards2(j)
ShuffleCards.cards2(j) = temp

End If

Next j

Next count


you must set a value for temp when swapping two cards, a normal swap takes 3 statements inside the IF.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: Sorting an Array ASCENDING ORDER Pin
PAguilar098-Nov-09 14:53
PAguilar098-Nov-09 14:53 
GeneralRe: Sorting an Array ASCENDING ORDER Pin
Luc Pattyn8-Nov-09 15:12
sitebuilderLuc Pattyn8-Nov-09 15:12 
GeneralRe: Sorting an Array ASCENDING ORDER Pin
PAguilar099-Nov-09 3:15
PAguilar099-Nov-09 3:15 
QuestionHow to add all the items of treeview within the combobox? Pin
Milad.Biroonvand8-Nov-09 1:21
Milad.Biroonvand8-Nov-09 1:21 
AnswerRe: How to add all the items of treeview within the combobox? Pin
Milad.Biroonvand8-Nov-09 2:31
Milad.Biroonvand8-Nov-09 2:31 
GeneralRe: How to add all the items of treeview within the combobox? Pin
Steven J Jowett8-Nov-09 5:40
Steven J Jowett8-Nov-09 5:40 
QuestionHow to get a movie resolution (film file) Pin
Milad.Biroonvand7-Nov-09 21:03
Milad.Biroonvand7-Nov-09 21:03 
RantRe: How to get a movie resolution (film file) Pin
Milad.Biroonvand7-Nov-09 21:45
Milad.Biroonvand7-Nov-09 21:45 
AnswerRe: How to get a movie resolution (film file) Pin
Christian Graus7-Nov-09 22:31
protectorChristian Graus7-Nov-09 22:31 
GeneralRe: How to get a movie resolution (film file) Pin
Milad.Biroonvand7-Nov-09 22:42
Milad.Biroonvand7-Nov-09 22:42 
GeneralRe: How to get a movie resolution (film file) Pin
Christian Graus8-Nov-09 8:58
protectorChristian Graus8-Nov-09 8:58 
QuestionArray Elements to different LABELS Pin
PAguilar097-Nov-09 19:54
PAguilar097-Nov-09 19:54 
AnswerRe: Array Elements to different LABELS Pin
dan!sh 7-Nov-09 20:59
professional dan!sh 7-Nov-09 20:59 
AnswerRe: Array Elements to different LABELS Pin
Christian Graus7-Nov-09 22:32
protectorChristian Graus7-Nov-09 22:32 
QuestionColorDialog Help! Pin
thebiostyle7-Nov-09 15:43
thebiostyle7-Nov-09 15:43 
AnswerRe: ColorDialog Help! Pin
Christian Graus7-Nov-09 22:33
protectorChristian Graus7-Nov-09 22:33 
QuestionOne program code Gsm_Modem to send or receive has to face. Pin
Ir-win ChakadCo7-Nov-09 5:19
Ir-win ChakadCo7-Nov-09 5:19 

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.