visual studio 2010 - vb.net how to check case of label.text i.e lower case, upper case -
how check caseing in label.text vb.net
i want check wheather label text in
upper case or lowercase or title case or sentence case or toggle case
got solution lower , upper
if char.islower()=true 'my code endif if char.isupper() =true 'my code endif title case or
sentence case or
toggle case
still dnt knw how check
isupper , islower apply single characters within string. think better solution create temporary string formatted way want , return comparison.
as example (for propercase)
if string.format(yourstring, vbstrconv.propercase) = yourstring 'your code proper case end if with this, should able most of comparisons going. toggle case, going have write algorithm string conversion you. see http://www.codeproject.com/tips/162540/letter-case-conversion-algorithms-title-case-toggl useful algorithm.
Comments
Post a Comment