'StartWith、EndWith:像似sql語法中 like "%XXX" / like "XXX%"

For Each st In NameArray
            'Debug.WriteLine(st)
            If st.StartsWith("火") Then
                Console.WriteLine(st)
            End If
      Next
輸出所有書名有"火"的書,EndsWith即為反之
文章標籤
全站熱搜
創作者介紹
創作者 colud77 的頭像
colud77

I-Cloud程式攻略

colud77 發表在 痞客邦 留言(0) 人氣(439)