hi all,
I have a string, let's say like: Leelha-Notcoming-Juniper-Legacy.
Now if I will give 1 then i want only 1st string out of 4. How can i get that? please hlp.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Dec 13, 2017, 2:15 AM EST
leelha75 reputationPosted Dec 13, 2017, 2:28 AM EST
Posted Dec 13, 2017, 2:45 AM EST
string a = " Leelha-Notcoming-Juniper-Legacy";
string[] s = a.Split('-');
textBox1.Text = s[1];
Tapan PatelRank #614 · 3.9K reputationPosted Dec 13, 2017, 5:20 AM EST