|
-
Aug 28th, 2001, 08:21 AM
#1
Thread Starter
Addicted Member
variable
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???
This must be posible pls help!
regards
-
Aug 28th, 2001, 08:23 AM
#2
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)
-
Aug 28th, 2001, 08:24 AM
#3
Frenzied Member
or use instr to find the pos of a certain character, or use the like statement
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Aug 28th, 2001, 08:25 AM
#4
Fanatic Member
mid$(String, n, 1) gives the character at the nth position
-
Aug 28th, 2001, 08:25 AM
#5
Addicted Member
Use Mid? Mid("Hello World",2,1) would return 'e'...
Computer /nm./: a device designed to speed and automate errors
-
Aug 28th, 2001, 08:26 AM
#6
Thread Starter
Addicted Member
cheers guys
i think the mid function should work! forgot about that one
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|