0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

自分用VB.netメモ

0
Last updated at Posted at 2025-02-11

.Substring(A,B)

AからB文字を抽出する
Aだけの場合はAから最後まで


`Trim()

前後の空白文字を削除
.TrimStart先頭の空白文字を削除
.TrimEnd末尾の空白文字を削除


.IndexOf(A)

文字列のAと重複する位置を返す(何文字目か)
空白文字("")を指定した場合は0を返す
見つからないと-1を返す


New String(A,B)

A: 繰り返す文字(キャラクター)。
B: その文字を繰り返す回数。
この構文は、指定した文字を指定した回数繰り返した文字列を生成します。


.Length

文字列の文字数を返します。
文字列に含まれる文字、空白、句読点などもすべて「1文字」としてカウントされます。


Integer.Parse(A)

Aを整数型にへんかん
String 文字列
Double 小数点
Date 日付
Decimal より精密な小数点

エラーへの対処
Tryparse(A,B)
AをBの型に変換してBに入れる








0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?