|
-
May 27th, 2001, 12:56 PM
#1
Thread Starter
Lively Member
Subtracting Word From Line
I know you can add things to a line by going + "whatever", but I wanted to know how to minus a word from a line. Lets say the line was '(Enter)> Cow' and I want to subtract the (Enter)> from the line. How would I do that? I've tried the '-' sign but I always get an error.
Thanks.
-
May 27th, 2001, 01:03 PM
#2
_______
<?>
Dim x As String
x = "(Enter)> Cow"
Dim y
y = Split(x, " ")
x = y(UBound(y))
MsgBox x
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
May 27th, 2001, 02:37 PM
#3
You could use the Mid or Right functions as well to subtract words from the right (Left or Mid function to subtract words from the left).
Code:
x = "(Enter)> Cow"
MsgBox Right$(x, 3)
MsgBox Mid$(x, InStr(x, ">") + 2)
-
May 27th, 2001, 04:55 PM
#4
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
|