Hi guys
I am using vb.net
I have this "12.95-ups ground" string and I need to get the string after the dash
could you send me your suggestions please.
thanks
Cemal
Hi, try this:
Dim myStrAs String ="12.95-ups ground"Dim myTrimAs String = Mid(myStr, InStr(myStr,"-") + 1)
try something like below
index=yourStringVariable.IndexOf(".");
then
YourString.Substring( check what parameter this function requires)
string _strTest = "12.95-ups ground";
Response.Write ( _strTest.Substring ( 6 ) ) ;
Thanks
-Mark post(s) as "Answer" that helped you
dim str as string
str="12.95-ups ground"
dim newVal as string
newVal=str.substring(str.indexof("-")+1)
response.write(newVal)
0 comments:
Post a Comment