2014年12月10日 星期三

[VB6] Mid Func. 取sub string

Share it Please
語法:Mid(String, Start As Long, [Length])
從字串中取回指定數目的字元


EX:
Dim MyString, FirstWord, LastWord, MidWords
MyString = "Mid Function Demo"   ' 建立一個字串。
FirstWord = Mid(MyString, 1, 3)   ' 傳回 "Mid"。
LastWord = Mid(MyString, 14, 4)   ' 傳回 "Demo"。
MidWords = Mid(MyString, 5)   ' 傳回 "Funcion Demo"。

1 則留言:

  1. Casinos near Casinos Near Casinos & Gambling in Washington, D.C.
    Find 시흥 출장안마 the best casinos and 강릉 출장샵 hotels near Casinos in Washington, D.C.. 남원 출장안마 Casino Near Me Near Me: Best Casino 청주 출장샵 Near Me: The Casino at 통영 출장샵

    回覆刪除

Followers

Follow The Author