如何在Vb.Net中拆分字符串 [英] How Can I Split A String In Vb.Net
本文介绍了如何在Vb.Net中拆分字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生..我有一个图片路径..像〜/ photos / consultant / images.jpeg我需要拆分并在变量中存储字符串部分images.jpeg..我怎么能这样做..
解决方案
检查出来: Path.GetFileName方法 [ ^ ]
试试这个.. :)
Dim FileName As < span class =code-keyword> String = Path.GetFileName( 〜/ photos / consultant / images.jpeg)
Path.GetFileName方法 [ ^ ]
Visual Basic无法识别Path.GetFileName方法 [ ^ 一>
sir.. i have a image path..like "~/photos/consultant/images.jpeg" i need to split and store string part "images.jpeg" in a variable.. how can i do it..
解决方案
Check this out: Path.GetFileName Method[^]
try this.. :)
Dim FileName As String = Path.GetFileName("~/photos/consultant/images.jpeg")
Path.GetFileName Method[^]
Visual Basic not recognizing Path.GetFileName Method[^]
这篇关于如何在Vb.Net中拆分字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文