Click here to Skip to main content
15,902,276 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiondatagread Pin
asha_s10-May-08 2:08
asha_s10-May-08 2:08 
AnswerRe: datagread Pin
Dave Kreskowiak10-May-08 6:05
mveDave Kreskowiak10-May-08 6:05 
QuestionMid character Pin
Jamal Abdul Nasir10-May-08 0:18
Jamal Abdul Nasir10-May-08 0:18 
AnswerRe: Mid character Pin
Rupesh Kumar Swami10-May-08 1:28
Rupesh Kumar Swami10-May-08 1:28 
AnswerRe: Mid character Pin
Rajesh Anuhya10-May-08 2:51
professionalRajesh Anuhya10-May-08 2:51 
GeneralRe: Mid character Pin
Jamal Abdul Nasir10-May-08 3:38
Jamal Abdul Nasir10-May-08 3:38 
GeneralRe: Mid character Pin
Rupesh Kumar Swami10-May-08 5:57
Rupesh Kumar Swami10-May-08 5:57 
AnswerRe: Mid character Pin
Dave Kreskowiak10-May-08 6:01
mveDave Kreskowiak10-May-08 6:01 
You can use the IndexOf method of the String class to find the index of the first occurance of your string. Then you can call it again, passing in the position to start the search from, namely the position of the previous occurance of the string.
' Look for the first occurance of "a" in a string
Dim pos As Integer = SomeString.IndexOf("a"c)
' Look for the next occurance of "a", starting at the position of the first occurance +1.
Dim pos2 As Integer = SomeString.IndexOf("a"c, pos + 1)

Or, if you already know the positions, you can use the SubString method of the String class.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




QuestionDay of Week Pin
Socheat.Net10-May-08 0:12
Socheat.Net10-May-08 0:12 
AnswerRe: Day of Week Pin
Luc Pattyn10-May-08 0:58
sitebuilderLuc Pattyn10-May-08 0:58 
AnswerRe: Day of Week [modified] Pin
Rajesh Anuhya10-May-08 2:56
professionalRajesh Anuhya10-May-08 2:56 
Questionabout windows service Pin
vijaylumar9-May-08 19:48
vijaylumar9-May-08 19:48 
AnswerRe: about windows service Pin
Dave Kreskowiak10-May-08 5:52
mveDave Kreskowiak10-May-08 5:52 
AnswerRe: about windows service Pin
Steve Westbrook11-May-08 16:11
Steve Westbrook11-May-08 16:11 
QuestionLogin through HttpWebRequest? Pin
AliAmjad9-May-08 8:35
AliAmjad9-May-08 8:35 
AnswerRe: Login through HttpWebRequest? Pin
Dave Kreskowiak9-May-08 8:42
mveDave Kreskowiak9-May-08 8:42 
GeneralRe: Login through HttpWebRequest? Pin
AliAmjad9-May-08 9:44
AliAmjad9-May-08 9:44 
GeneralRe: Login through HttpWebRequest? Pin
Dave Kreskowiak9-May-08 9:56
mveDave Kreskowiak9-May-08 9:56 
GeneralRe: Login through HttpWebRequest? Pin
AliAmjad9-May-08 10:20
AliAmjad9-May-08 10:20 
GeneralRe: Login through HttpWebRequest? Pin
Dave Kreskowiak9-May-08 10:39
mveDave Kreskowiak9-May-08 10:39 
GeneralRe: Login through HttpWebRequest? Pin
AliAmjad9-May-08 22:35
AliAmjad9-May-08 22:35 
GeneralRe: Login through HttpWebRequest? Pin
Dave Kreskowiak10-May-08 5:49
mveDave Kreskowiak10-May-08 5:49 
GeneralRe: Login through HttpWebRequest? Pin
AliAmjad12-May-08 1:31
AliAmjad12-May-08 1:31 
QuestionCreating Button's Dynamicaly Pin
jacko8739-May-08 7:37
jacko8739-May-08 7:37 
AnswerRe: Creating Button's Dynamicaly Pin
Dave Kreskowiak9-May-08 7:48
mveDave Kreskowiak9-May-08 7:48 

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.