Professional Documents
Culture Documents
Sample Code
Create Visual Basic.NET Project
File>Exit
SQL Server Express Versions
Next>Next>Next>Finish> Close
Modify Database Structure
Next, type:
alsData = New ArrayList(startSize)
Dim i as Integer 'move up into other declations
For Each dr In ds.Tables(0).Rows
rowData = ""
For Each dc In ds.Tables(0).Columns
rowData += Trim(dr(dc).ToString()).PadRight(pads(i)) '*
i += 1
Next
i=0
alsData.Add(rowData)
Next
* will need to use PadLeft for left padding numbers
Finish Function and Module
Type:
con.Close()
da = Nothing
ds = Nothing
Return alsData
Code the Form
Type:
dataSizeSmaller = CInt(COUNTRY_COUNT /
SIZE_FACTOR) 'reduces default size
Type:
If whatData = "country" Then
sqlStr = selectors & fromArg & " where
Country " & whatCompare & "'" & whatCriteria &
"'" & orderArg
dataSize = dataSizeSmaller
ElseIf whatData = "population" Then
sqlStr = selectors & fromArg & " where
Pop " & whatCompare & whatCriteria & orderArg
Finish Coding BizTier Module
Type:
ElseIf whatData = "golds" Then
sqlStr = selectors & fromArg & " where Gold "
& whatCompare & whatCriteria & orderArg
End If
End If