Microsoft
Software
Hardware
Network
Question : Returning Parts of String Variables in VB
I’m really new to Visual Basic and can’t find a particular string function. In Pascal, if I wanted to test the first three characters of a string, I could use the Copy command as follows:
AString:='Washington';
BString:=Copy(AString,1,3)
;
In this example, BString would be “Was” because the Copy function as used in the example returns three characters of AString starting at character position 1.
Is there a similar function in VB that I can use to return parts of strings?
Answer : Returning Parts of String Variables in VB
Or, more flexibly:
Bstring = Mid(Astring, 1, 3)
Random Solutions
Feildset hide/show in Google Mail, php
Sound gone
Error event occuring since bringing up new HubCAS sever
Dreamweaver and jQuery
Built-In Webcam Stopped Working on Lenovo ThinkPad
Extract icon from EXE/DLL
What does it mean if I am receiving output errors on all of my Cisco Aironet 1130AG?
how to install Ubuntu netbook, without a CD and USB drive?
[ODBC Microsoft Access Driver]Invalid descriptor index error
Bind List<List<string>> to Grid