
| VB6のコマンド | VB.Net 2005のコマンド |
| Left(A,B) | A.Substring(0,B) |
| Right(A,B) | A.SubString(A.Length-B,B) |
| Mid(A,B,C) | A.Substring(B-1,C) |
| Mid(A,B) | A.Substring(B-1) |
| VAL(A) | Integer.Parse(A) |
| VAL("&H"+A) | Integer.Parse(A, Globalization.NumberStyles.AllowHexSpecifier) ※変換後の型がIntegerの場合。他の型に変換する場合はInteger部を変更 |
| Cstr(A) | A.ToString() |
| Hex(A) | A.ToString("X3") ※Xは16進数、3は3桁の意味です。必要に応じて変更してください |
| Exist(A) | (ファイルの場合)System.IO.File.Exists(A) (フォルダの場合)System.IO.Directory.Exists(A) |
| Dir(Path,mask) | Dim fs As String() = System.IO.Directory.GetFiles(Path, mask) |
| 処理内容 | プログラム |
| 待機中のイベントを実行する | System.Windows.Form.DoEvents() |
|
|