.NET C#,VB.NET,VC.NET

■指定文字(文字列)を削除

文字列の中から指定文字(文字列)を削除します。
Replaceを応用してみました。

C#
string str = "hello unko";
str = str.Replace( "unko", "" );
MessageBox.Show( str );
VB.NET
Dim str As String = "hello unko"
str = str.Replace("unko", "")
MessageBox.Show(str)
VC.NET
String *str = "hello unko";
str = str->Replace( "unko", "" );
MessageBox::Show( str );

トップ  > .NET C#,VB.NET,VC.NET
Copyright (C) 2005.09 〜 By Shougo Suzaki

SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送