|
-
Nov 19th, 2000, 01:59 PM
#1
Thread Starter
Junior Member
-
Nov 19th, 2000, 02:19 PM
#2
Member
Hi,
I guess left(myString,1) won't do the trick... or? Otherwise try to spilt the string!
Code:
theString = "Try to split"
myString = Split(theString, " ")
result = myString(0)
The result-variable will now hold "Try".
-
Nov 19th, 2000, 03:23 PM
#3
Or use InStr.
Code:
TheString = "Try to split"
MsgBox Left(TheString, InStr(1, TheString, " ") - 1)
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
|