Character position in string at which the part to be taken begins. String expression from which characters are returned. The Mid$ function syntax has these parts: Returns a substring containing a specified number of characters from a string. LngLen = Len("Visual Basic") ' lngLen = 12 Where string is the string whose length (number of characters) is to be returned. Returns a Long containing the length of the specified string Also there are many other string related tutorials on this site so feel free to browse around. If you are still confused feel free to post a comment and hopefully we can help get you cleared up. This tutorial will walk you through all the different ways you can us VB to handle strings. The first time I started trying to understand the VB6 string functions I was somewhat confused. The functions that return strings can be coded with or without the dollar sign ( $) at the end, although it is more efficient to use the version with the dollar sign. Most VB string-handling functions return a string, although some return a number (such as the Len function, which returns the length of a string and functions like Instr and InstrRev, which return a character position within the string). VB has numerous built-in string functions for processing strings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |