请问VC中的字符串函数GetAt(),在VB中是什么?

解决方案 »

  1.   

    Returns a string containing a specified number of characters from a string.Public Shared Function Mid( _
       ByVal Str As String, _
       ByVal Start As Integer, _
       Optional ByVal Length As Integer _
    ) As String
    Parameters
    Str 
    Required. String expression from which characters are returned. 
    Start 
    Required. Integer expression. Character position in Str at which the part to be taken starts. If Start is greater than the number of characters in Str, the Mid function returns a zero-length string (""). Start is one based. 
    Length 
    Optional. Integer expression. Number of characters to return. If omitted or if there are fewer than Length characters in the text (including the character at position Start), all characters from the start position to the end of the string are returned. 
      

  2.   

    可Mid返回是String,而GetAt()返回是TCHAR
      

  3.   

    除了MID...
    但VB只有String,没有TCHAR.