Click here to Skip to main content
15,892,674 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionUrgent 001 Pin
Sarfaraj Ahmed21-Mar-07 1:21
Sarfaraj Ahmed21-Mar-07 1:21 
AnswerRe: Urgent 001 Pin
Tirthadip21-Mar-07 2:03
Tirthadip21-Mar-07 2:03 
GeneralRe: Urgent 001 Pin
Sarfaraj Ahmed21-Mar-07 2:34
Sarfaraj Ahmed21-Mar-07 2:34 
AnswerRe: Urgent 001 Pin
PlayByTheRules21-Mar-07 2:22
PlayByTheRules21-Mar-07 2:22 
QuestionInterfacing with a web camera Pin
BarnfieldAdam21-Mar-07 0:45
BarnfieldAdam21-Mar-07 0:45 
AnswerRe: Interfacing with a web camera Pin
Dave Kreskowiak21-Mar-07 3:20
mveDave Kreskowiak21-Mar-07 3:20 
GeneralRe: Interfacing with a web camera Pin
BarnfieldAdam21-Mar-07 4:10
BarnfieldAdam21-Mar-07 4:10 
QuestionQuestion on substring???????? Pin
shyamts21-Mar-07 0:41
shyamts21-Mar-07 0:41 
Hi,
My string contains a number followed by hiphen and then followed by text say
string1 = "1239980 - Microsoft" . Here, "-" is used as a delimiter.

How do i only retrive number from a string.This is my following code.

Dim a As String
Dim b As String
a = "1239980 - Microsoft"
b = a.Substring(0, Len(InStr(a, "-")) - 2)

The value of InStr(a, "-") is 9 which indicates the index of position of "-". Now i want to extract first 7 characters i.e the number part... What i will do??? Please help me...

Thanks and regards,
Shyam
AnswerRe: Question on substring???????? Pin
Tamimi - Code21-Mar-07 0:49
Tamimi - Code21-Mar-07 0:49 
GeneralRe: Question on substring???????? Pin
shyamts21-Mar-07 2:27
shyamts21-Mar-07 2:27 
AnswerRe: Question on substring???????? Pin
BarnfieldAdam21-Mar-07 0:55
BarnfieldAdam21-Mar-07 0:55 
AnswerRe: Question on substring???????? Pin
Johan Hakkesteegt21-Mar-07 1:35
Johan Hakkesteegt21-Mar-07 1:35 
AnswerRe: Question on substring???????? Pin
shyamts21-Mar-07 2:26
shyamts21-Mar-07 2:26 
Questionproject's components missing in the toolbox Pin
steve_rm20-Mar-07 23:11
steve_rm20-Mar-07 23:11 
AnswerRe: project's components missing in the toolbox Pin
A*****20-Mar-07 23:15
A*****20-Mar-07 23:15 
QuestionRe: project's components missing in the toolbox Pin
steve_rm20-Mar-07 23:21
steve_rm20-Mar-07 23:21 
AnswerRe: project's components missing in the toolbox Pin
A*****20-Mar-07 23:33
A*****20-Mar-07 23:33 
QuestionRe: project's components missing in the toolbox Pin
steve_rm20-Mar-07 23:36
steve_rm20-Mar-07 23:36 
AnswerRe: project's components missing in the toolbox Pin
A*****20-Mar-07 23:44
A*****20-Mar-07 23:44 
AnswerRe: project's components missing in the toolbox Pin
The ANZAC21-Mar-07 0:00
The ANZAC21-Mar-07 0:00 
QuestionRe: project's components missing in the toolbox Pin
steve_rm21-Mar-07 0:14
steve_rm21-Mar-07 0:14 
AnswerRe: project's components missing in the toolbox Pin
Dave Kreskowiak21-Mar-07 3:18
mveDave Kreskowiak21-Mar-07 3:18 
QuestionHourglass Pin
Liottru20-Mar-07 22:07
Liottru20-Mar-07 22:07 
AnswerRe: Hourglass Pin
KaineDunno20-Mar-07 23:47
KaineDunno20-Mar-07 23:47 
AnswerRe: Hourglass Pin
Johan Hakkesteegt21-Mar-07 2:02
Johan Hakkesteegt21-Mar-07 2:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.