Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to make text go away after a few seconds? Pin
Adam Wike14-Apr-10 4:11
Adam Wike14-Apr-10 4:11 
GeneralRe: How to make text go away after a few seconds? Pin
Dalek Dave14-Apr-10 8:35
professionalDalek Dave14-Apr-10 8:35 
AnswerRe: How to make text go away after a few seconds? Pin
William Winner14-Apr-10 8:28
William Winner14-Apr-10 8:28 
QuestionSplitting a .txt file and sorting it Pin
offroaderdan14-Apr-10 3:11
offroaderdan14-Apr-10 3:11 
AnswerRe: Splitting a .txt file and sorting it Pin
tosch14-Apr-10 3:42
tosch14-Apr-10 3:42 
GeneralRe: Splitting a .txt file and sorting it [modified] Pin
offroaderdan14-Apr-10 3:48
offroaderdan14-Apr-10 3:48 
GeneralRe: Splitting a .txt file and sorting it Pin
tosch14-Apr-10 4:15
tosch14-Apr-10 4:15 
GeneralRe: Splitting a .txt file and sorting it [modified] Pin
offroaderdan14-Apr-10 4:38
offroaderdan14-Apr-10 4:38 
WOOOOOO it actually seems to work.

Quick question though I tried to trick the code to see if the sort is actually working and it doesn't appear to sort the highscores into numerical order.
All i actually done was just move the highest score to the bottom of the text file, so only one of them was out of sync.
There also seems to be an error on button click, which i think is part of the sorting.

Private Sub comtest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles comtest.Click
    username = Text1.Text
    userscore = Val(Text2.Text)
    For i = 1 To 10
        a = scores(i)
        If userscore >= a Then
            test1(i) = username
            test2(i) = userscore
            For b = i + 1 To 10
                test1(b) = names(b - 1)             ' comes up with an error saying ArgumentOutOfRage index was out of range, must be non-negative 
                test2(b) = scores(b - 1)
            Next
            Call newscore()
            Exit Sub
        End If
        test1(i) = names(i)
        test2(i) = scores(i)
    Next
End Sub

Any ideas

Many thanks for all the help


Cheers

Dan
modified on Wednesday, April 14, 2010 10:46 AM

GeneralRe: Splitting a .txt file and sorting it Pin
tosch14-Apr-10 4:48
tosch14-Apr-10 4:48 
AnswerRe: Splitting a .txt file and sorting it [modified] Pin
Ian Shlasko14-Apr-10 5:50
Ian Shlasko14-Apr-10 5:50 
GeneralRe: Splitting a .txt file and sorting it Pin
offroaderdan15-Apr-10 0:12
offroaderdan15-Apr-10 0:12 
GeneralRe: Splitting a .txt file and sorting it Pin
Ian Shlasko15-Apr-10 1:37
Ian Shlasko15-Apr-10 1:37 
GeneralRe: Splitting a .txt file and sorting it Pin
offroaderdan15-Apr-10 1:52
offroaderdan15-Apr-10 1:52 
GeneralRe: Splitting a .txt file and sorting it Pin
Ian Shlasko15-Apr-10 1:58
Ian Shlasko15-Apr-10 1:58 
QuestionErrorprovider within a datatable column Pin
popalzai13-Apr-10 20:49
popalzai13-Apr-10 20:49 
AnswerRe: Errorprovider within a datatable column Pin
Simon_Whale14-Apr-10 3:30
Simon_Whale14-Apr-10 3:30 
GeneralRe: Errorprovider within a datatable column Pin
popalzai14-Apr-10 19:49
popalzai14-Apr-10 19:49 
GeneralRe: Errorprovider within a datatable column Pin
Simon_Whale14-Apr-10 21:55
Simon_Whale14-Apr-10 21:55 
QuestionHow to consume WCF service throgh Visual Basic 6.0 application Pin
amit k mistry13-Apr-10 10:28
amit k mistry13-Apr-10 10:28 
AnswerRe: How to consume WCF service throgh Visual Basic 6.0 application Pin
nlarson1113-Apr-10 11:08
nlarson1113-Apr-10 11:08 
GeneralRe: How to consume WCF service throgh Visual Basic 6.0 application Pin
amit k mistry13-Apr-10 11:21
amit k mistry13-Apr-10 11:21 
GeneralRe: How to consume WCF service throgh Visual Basic 6.0 application Pin
amit k mistry13-Apr-10 11:25
amit k mistry13-Apr-10 11:25 
GeneralRe: How to consume WCF service throgh Visual Basic 6.0 application Pin
nlarson1113-Apr-10 16:32
nlarson1113-Apr-10 16:32 
GeneralRe: How to consume WCF service throgh Visual Basic 6.0 application Pin
amit k mistry14-Apr-10 4:33
amit k mistry14-Apr-10 4:33 
GeneralRe: How to consume WCF service throgh Visual Basic 6.0 application Pin
nlarson1114-Apr-10 4:49
nlarson1114-Apr-10 4:49 

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.