VB編程變量命名大小寫(xiě)
變量命名大小寫(xiě),語(yǔ)句錯(cuò)落有秩,源代碼維護(hù)方面
下面大家比較一下以下兩段代碼:
讀懂難度很大的`代碼:
Dim SNAME As String
Dim NTURN As Integer
If NTURN = 0 Then
If SNAME = "vbeden" Then
Do While NTURN < 4
NTURN = NTURN + 1
Loop
End If
End If
容易讀懂的代碼:
Dim sName As String
Dim nTurn As Integer
If nTurn = 0 Then
If sName = "vbeden" Then
Do While nTurn < 4
nTurn = nTurn + 1
Loop
End If
End If
【VB編程變量命名大小寫(xiě)】相關(guān)文章:
6.VB例題
7.筆試題(變量)
8.VB筆試題