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
Revert to Visual Studio 2008
Drupal View Image Gallery
Windows BAD_SySTEM_CONFIG_INFO Bsod
Windows Server 2003 Intermittent Freezing Issues
Exchange 2003 - Storage groups are dissmounting with backup softwere
Start applications from command promt
Unable to Send Emails via Road Runner from Apple iPad Connected to Wifi
SATA hard drive (WD20EARS) not detected by computer (K9N6PGM2)
POP UP error in MS-CRM
mcafee 4.5 issue cant see the agent logs