pls need quick help
i have a variable that contains the words "Hello World" for example
how can i "point" to any given charater in that variable??? :confused:
This must be posible pls help!
regards
Printable View
pls need quick help
i have a variable that contains the words "Hello World" for example
how can i "point" to any given charater in that variable??? :confused:
This must be posible pls help!
regards
You can use the Mid function, which will return any character starting from any point in the string for a specified length.
VB Code:
Dim DataToGetFrom As String returned = Mid(DataToGetFrom, StartFrom, LengthToGetFor)
or use instr to find the pos of a certain character, or use the like statement
mid$(String, n, 1) gives the character at the nth position :p
Use Mid? Mid("Hello World",2,1) would return 'e'...
cheers guys
i think the mid function should work! forgot about that one