Substring function
I have a hyperlink string need to pass to the form.
I would like to display just the last part the string from the backsplash eg. "/xxxxx".
I could not find any Subtring or Mid string functions to make it work.
Anybody can help?
Thanks
Wayne
0
-
Hi Wayne,
Something like this should work (where x is your string variable):
x.Substring(x.LastIndexOf("/"c))
--Ryan
0 -
Hi Ryan,
Thanks and the trick is "C". I did not put C there before. Now it has "/xxxxx" in the string. I guess it need to remove -1
Thanks
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare