種別 |
キー |
サンプル |
型 |
Imports |
Imports System.Text |
Imports System.IO |
Imports System.Net |
Imports System.Data.OracleClient |
Imports System.Data.Odbc |
論理型 |
Dim booSample As Boolean ' ブール型 |
数値型 |
Dim bytSample As Byte ' バイト型 |
Dim chaSample As Char ' 文字型 |
Dim shoSample As Short ' 短整数型 |
Dim intSample As Integer ' 整数型 |
Dim lonSample As Long ' 長整数型 |
Dim sbySample As SByte ' 符号付バイト型 |
Dim ushSample As UShort ' 符号なし短整数型 |
Dim uinSample As UInteger ' 符号なし整数型 |
Dim uloSample As ULong ' 符号なし長整数型 |
Dim decSample As Decimal ' 10進型 |
Dim sinSample As Single ' 単精度浮動小数点型 |
Dim douSample As Double ' 倍精度浮動小数点型 |
Dim datSample As Date ' 日付型 |
Dim objSample As Object ' オブジェクト型 |
文字型 |
Dim strSample As String ' 文字列型 |
Dim sbBuff As New System.Text.StringBuilder ' 文字列を連結 |
sbBuff.Append("A") |
配列 |
Dim arrStrA() As String ' 文字配列 |
arrStrA = New String() {"あ", "い", "う"} ' 文字配列 |
Dim arrStrB As String() ' 文字配列 |
Dim arrStrC = New String() {"あ", "い", "う"} ' 文字配列 |
List |
Dim strList As New List(Of String) |
strList.Add("あ") |
strList.Add("い") |