Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stripping a String

Status
Not open for further replies.

solidjp

Programmer
Jul 16, 2002
29
US
I have a string with a value that looks like this "w81flr05102202". I need to only get the first six characters out of that string. How do I do that in VB. I was thinking of using the Split function but didn't see any delimiter I could use.
 
Here you go

Private Sub Command1_Click()
Command1.Caption = Left$("w81flr05102202", 6)
End Sub

Hope this helps. If you choose to battle wits with the witless be prepared to lose.
[machinegun][hammer]

[cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top