(
Imports System
Imports System
(
輸出結果很簡單
操作回顧
首先對變量進行聲明
Dim conn As New SqlConnection(ConfigurationManager
Dim cmd As New SqlCommand(
Dim rdr As SqlDataReader
接下來使用一些變量保存贏
Dim wins As Integer =
Dim losses As Integer =
Dim draws As Integer =
Dim goalsFor As Integer =
Dim goalsAgainst As Integer =
Dim winRatio As Integer
一旦聲明了變量
conn
rdr = cmd
在數據讀取器讀滿數據時
While rdr
在該循環內總數逐漸遞增
goalsFor += Convert
goalsAgainst += Convert
[
From:http://tw.wingwit.com/Article/program/net/201311/14539.html