mid 是什么文件?

Mid是Visual Basic和Microsoft Excel中的一个字符串函数 , 作用是从一个字符串中截取出指定数量的字符 。这个函数的3个参数各在VB和Excel中互相等价 , 但VB中的Length参数可以省略 , 而Excel中num_chars参数不可省略 。
当Start(start_num)参数小于1时 , 函数返回一个错误;当Start参数值大于String(text)参数长度时 , 返回一空字符串;若从Start参数起截取长度超出字符串末尾 , 或Length参数被省略 , 则返回Start参数位置到字符串结尾的所有字符 。

mid 是什么文件?


扩展资料:
Mid的语法
1、VB中
Mid(String As Variant, Start As Long, [Length As Variant]) As Variant
Mid$(String As String, Start As Long, [Length As Variant]) As String
2、Excel中
MID(text, start_num, num_chars)
参考资料来源:百度百科-Mid
参考资料来源:百度百科-Visual Basic
【mid 是什么文件?】

    猜你喜欢