Click here to Skip to main content
15,890,123 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to import all csv files in a drive to database ? Pin
sensizbenlik14-Apr-14 14:25
sensizbenlik14-Apr-14 14:25 
GeneralRe: how to import all csv files in a drive to database ? Pin
Wes Aday14-Apr-14 14:53
professionalWes Aday14-Apr-14 14:53 
GeneralRe: how to import all csv files in a drive to database ? Pin
sensizbenlik14-Apr-14 15:05
sensizbenlik14-Apr-14 15:05 
GeneralRe: how to import all csv files in a drive to database ? Pin
Wes Aday14-Apr-14 15:35
professionalWes Aday14-Apr-14 15:35 
QuestionTCP client example Pin
LegrandK14-Apr-14 8:56
LegrandK14-Apr-14 8:56 
AnswerRe: TCP client example Pin
Richard Andrew x6414-Apr-14 15:00
professionalRichard Andrew x6414-Apr-14 15:00 
QuestionWSDL and Web service Pin
Member 270883213-Apr-14 21:01
Member 270883213-Apr-14 21:01 
QuestionOrder Help! Pin
Member 1072866713-Apr-14 12:52
Member 1072866713-Apr-14 12:52 
Again, I have a question on my homework this week. When I run my code, it doesn't list the races/results in order. What am I doing wrong?

VB
Dim chevy(8) As Decimal
        Dim ford(8) As Decimal
        Dim chevyCount As Integer = 0
        Dim fordCount As Integer = 0
        Dim index As Integer = 0

        For index = 0 To 7
            Console.WriteLine("Enter Chevy " & (index + 1) & " : ")
            chevy(index) = Console.ReadLine()
        Next

        Console.ReadLine()

        For index = 0 To 7
            Console.WriteLine("Enter Ford " & (index + 1) & " : ")
            ford(index) = Console.ReadLine()
        Next

        Console.ReadLine()

        For index = 0 To 7
            If (chevy(index) < ford(index)) Then
                chevyCount = chevyCount + 1
                Console.WriteLine("Chevy won by " & ford(index) - chevy(index) & " . ")
                Console.WriteLine("Chevy has won " & chevyCount & " races.")
            End If
        Next
        For index = 0 To 7
            If (chevy(index) > ford(index)) Then
                fordCount = fordCount + 1
                Console.WriteLine("Ford won by " & chevy(index) - ford(index) & " . ")
                Console.WriteLine("Ford has won " & fordCount & " races.")
            End If
        Next

        For index = 0 To 7
            If (chevy(index) = ford(index)) Then
                chevyCount = fordCount
                Console.WriteLine("This race was a tie!")
            End If
        Next

        Console.ReadLine()

        If chevyCount > fordCount Then
            Console.WriteLine("Chevy wins the match!")
        Else
            Console.WriteLine("Ford wins the match!")
        End If

        Console.ReadLine()

    End Sub

AnswerRe: Order Help! Pin
Wes Aday13-Apr-14 14:18
professionalWes Aday13-Apr-14 14:18 
AnswerRe: Order Help! Pin
Peter Leow13-Apr-14 15:21
professionalPeter Leow13-Apr-14 15:21 
Question1 form, 2 text boxes, how to write code to exchange text between boxes Pin
ChaseG12-Apr-14 13:24
ChaseG12-Apr-14 13:24 
AnswerRe: 1 form, 2 text boxes, how to write code to exchange text between boxes Pin
Wes Aday12-Apr-14 13:43
professionalWes Aday12-Apr-14 13:43 
AnswerRe: 1 form, 2 text boxes, how to write code to exchange text between boxes Pin
Tim Carmichael12-Apr-14 13:44
Tim Carmichael12-Apr-14 13:44 
GeneralRe: 1 form, 2 text boxes, how to write code to exchange text between boxes Pin
ChaseG12-Apr-14 17:13
ChaseG12-Apr-14 17:13 
GeneralRe: 1 form, 2 text boxes, how to write code to exchange text between boxes Pin
Richard MacCutchan12-Apr-14 22:01
mveRichard MacCutchan12-Apr-14 22:01 
AnswerRe: 1 form, 2 text boxes, how to write code to exchange text between boxes Pin
Tino Fourie24-Apr-14 3:46
Tino Fourie24-Apr-14 3:46 
Questionhow to import all csv files in c: drive to database ? Pin
sensizbenlik12-Apr-14 11:45
sensizbenlik12-Apr-14 11:45 
AnswerRe: how to import all csv files in c: drive to database ? Pin
Wes Aday12-Apr-14 12:29
professionalWes Aday12-Apr-14 12:29 
AnswerRe: how to import all csv files in c: drive to database ? Pin
Mycroft Holmes12-Apr-14 14:43
professionalMycroft Holmes12-Apr-14 14:43 
Questionhow to import all csv files in a drive to database ? Pin
sensizbenlik11-Apr-14 12:10
sensizbenlik11-Apr-14 12:10 
AnswerRe: how to import all csv files in a drive to database ? Pin
PIEBALDconsult11-Apr-14 12:35
mvePIEBALDconsult11-Apr-14 12:35 
GeneralRe: how to import all csv files in a drive to database ? Pin
sensizbenlik11-Apr-14 13:17
sensizbenlik11-Apr-14 13:17 
GeneralRe: how to import all csv files in a drive to database ? Pin
Mycroft Holmes11-Apr-14 13:54
professionalMycroft Holmes11-Apr-14 13:54 
GeneralRe: how to import all csv files in a drive to database ? Pin
sensizbenlik12-Apr-14 8:00
sensizbenlik12-Apr-14 8:00 
GeneralRe: how to import all csv files in a drive to database ? Pin
Richard MacCutchan12-Apr-14 11:31
mveRichard MacCutchan12-Apr-14 11:31 

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.