modStrTools 函式庫 風禹科技驗證有限公司 網站 提供 .Net 原始碼

MyMid 函數

說明

取得中英文混合字串

本函數之引數列表

引數 型態 位元組 選項 預設值 說明
vString String - 必須 (無) 可中英文混合使用
iStart Integer 4 必須 (無) 起始位置,同 Mid 第二個引數
iLength Integer 4 可省略 0 取得長度,同 Mid 第三個引數

傳回值

字串 (String)

範例

Debug.Write(MyMid("中文Testing測試",3,4))
' 可傳回 "文Te"

基本條件

Visual Studio .Net 2002 以後相容版本 | StrTools.aspx

請參閱

modStrTools 函式庫 | MyMid (VB.NET)