|
-
Feb 16th, 2000, 06:56 AM
#1
Thread Starter
Lively Member
How do i pull a the begining of this string but not the end..
string = 12345/67890
i want new_string = 12345
any help will be most appricated
thanks
brooke
-
Feb 16th, 2000, 07:07 AM
#2
new_string = Left$(string, 5)
------------------
Marty
What did the fish say when it hit the concrete wall?
> > > > > "Dam!"
-
Feb 16th, 2000, 07:10 AM
#3
Thread Starter
Lively Member
WHAT IF ITS 123456/799483 i want everything in front of the /
-
Feb 16th, 2000, 07:17 AM
#4
Try this:
Dim strText As String
strText = "12345/abcd
strText = Left(strText, InStr(strText, "/") - 1)
------------------
Serge
Senior Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819
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
|