Guid
how to change/ convert Guid to a seven character .i.e 94E7D0FD-2627-4D37-90A5-D8F7A01B4D41 to something like 94E7D0FD
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Michal HabalcikPosted Jan 15, 2015, 5:49 AM
string s = "94E7D0FD-2627-4D37-90A5-D8F7A01B4D4".Substring(0,7);
should give you "94E7D0F"
Michal HabalcikPosted Jan 15, 2015, 5:59 AM
Carlos kambuiPosted Jan 15, 2015, 5:58 AM
Khargesh RajputPosted Jan 15, 2015, 5:08 AM
label.Text= str.Substring(0, str.Length - 8);