Does anyone know why from this screenshot? I can go into more detail in replies
At a guess, it looks like the OrderOfListing
variable keeps increasing, so you may be creating an infinite loop (never ending). That can potentially cause your app to hang.
Without knowing more about your code & logic, it’s hard to tell when your If statements stop incrementing the OrderOfListing
variable.
You have both for… to OrderOfListing and OrderOfListing = OrderOfListing + 1. You don’t need the latter.
Please post code to the forum and not a screenshot.
This loop will never end because you keep increasing the value of OrderOfListing.
For ListNumber As Integer = 0 to OrderOfListing
It appears that you want to sort a list.
You have scores in the ScoreSorting array
When sorted , the ScoreList array holds sorted values.
I cannot work out what JumpList and Sensinglist are supposed to do.
You could just sort scorelist by calling scorelist.sort, then do stuff.
If ScoreList and ScoreSorting begin with the same values, you can sort ScoreList by reference to ScoreSorting, using
SortWith (SoreList, ScoreSorting)
Can you say what is it you want to achieve, rather than ‘whats wrong with this code’?
You can make a test sample showing the case, zip it, and post here.
I would help people to see, understand the issue and possibly fix it.