|
-
Dec 7th, 2005, 12:14 AM
#1
Thread Starter
Addicted Member
[RESOLVED] splitting up a string
Ill tell you what i need it for first. It is a simple chat that looks for a command in text that is sent. for instance "/msg"
Now each string will consist of this ( User: /msg this is a message bla bla bla )
what i need to do is split this up so that it will put the following into seperate string:
User
Command ( /msg for example )
and what follows /msg
i've tried using the split function but i dont know how to make everything that follows /msg a complete string instead after each space it is broken up
heres the code for that which wont work for me
a = Split(teststring)
For i = LBound(a) To UBound(a)
MsgBox a(i)
Next
End
i need something with Len correct?
Last edited by Coolone770; Dec 7th, 2005 at 12:17 AM.
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
|