|
![](/images/resource/spacer.gif) |
|
รบกวนขอวิธีที่สามารถ VB.net ตัดคำออกจากข้อความที่มีเครื่องหมาย # ให้หน่อยครับ |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
Code (C#)
private void button2_Click(object sender, EventArgs e)
{
try
{
string tmpStr = "Mr#Name#SurName";
string[] rr = tmpStr.Split(new char[] { '#' });
MessageBox.Show(rr[0].ToString()); // Show Mr
// rr[0] = Mr
// rr[1] = Name
// rr[2] = SurName
}
catch (Exception ex)
{ MessageBox.Show(ex.Message.ToString(), "Info"); }
}
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2023-03-23 15:27:43 |
By :
NEBULA |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 01
|