|
-
Jul 8th, 2004, 11:47 PM
#1
Thread Starter
Lively Member
remove the first 6 letters from a string
hi, does anyone know how to remove the first 6 characters from a string?
-
Jul 8th, 2004, 11:55 PM
#2
Frenzied Member
VB Code:
dim yourstring as string
yourstring = Right$(yourstring, Len(yourstring) - 6)
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jul 9th, 2004, 08:40 AM
#3
Hyperactive Member
or you could use:
Dim strMyString As String
Dim strSource as String
strSource = "Hello!!!! This is an Example of Strings"
strMyString = Mid(strSource, 7, Len(strSource))
MsgBox strMyString
-
Jul 9th, 2004, 10:31 AM
#4
Hyperactive Member
Code:
strMyString = Mid(strSource, 7, Len(strSource))
might be better expressed as
Code:
strMyString = Mid$(strSource, 7)
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
|