I’m looking for a function in Visual Basic 6 that will allow me to specify a position in a string and then return the character in that position.
To clarify let’s say I have the string “541”. The character in position 2 (or maybe pos 2 is pos 1 in reality?) is “4”. I want that value to be returned.
I’ve tried out Mid(), Left() and Right() but did not find a way to get it to return the middle character.
Hopefully my explanation is sufficient for you to get the point. Thank you for the help.
I think it’s
Mid(string, start position, length), such asMid("541", 2, 1)