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
sql server
VMware Workstation 7.1 Won't Install
instantiating an object in php
Why won't Exchange Transport service start in Exchange 2007 on our SBS 2008 server ?
VMware ESXi4 Backup
IE8 Submit Form with [Enter] Key, not functioning properly
How to notify the moderator of new posts?
VMware FT for Intel Xeon 5650 Chipset on Dell R610
insert record and check for existing email address
Virtual Disk 0 degraded Perc 5i integrated