Click here to Skip to main content
16,005,467 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDisplay random image Dice Roll Pin
chrischik24-Nov-05 2:51
chrischik24-Nov-05 2:51 
AnswerRe: Display random image Dice Roll Pin
Steve Pullan24-Nov-05 12:09
Steve Pullan24-Nov-05 12:09 
Questioncalculate z position Pin
nitin_ion24-Nov-05 1:27
nitin_ion24-Nov-05 1:27 
AnswerRe: calculate z position Pin
Dave Kreskowiak24-Nov-05 5:55
mveDave Kreskowiak24-Nov-05 5:55 
AnswerRe: calculate z position Pin
Briga24-Nov-05 7:15
Briga24-Nov-05 7:15 
QuestionSearch text files... Pin
japel24-Nov-05 0:58
japel24-Nov-05 0:58 
AnswerRe: Search text files... Pin
Briga24-Nov-05 7:13
Briga24-Nov-05 7:13 
AnswerRe: Search text files... Pin
Curtis Schlak.24-Nov-05 15:14
Curtis Schlak.24-Nov-05 15:14 
Okay, here's some pseudocode for you. I hope that it helps.
Construct a Regex for your search string
Initialize your count variable to 0
For each file in the directory
  Open the file
  Read it to the end and store the string
  Find the number of matches to the regex in the string
  Increment your count variable by that number
and, some example (but not necessarily compilable) code
Dim i As Integer
Dim r As Regex 
r = New Regex("me@here.com.au")
Dim fileEntries As String() = Directory.GetFiles(targetDirectory)
Dim fileName As String
For Each fileName In fileEntries
  i = i + r.Matches(File.OpenText(fileName).ReadToEnd()).Count
Next


"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
QuestionWinsock GetData Pin
Marc Soleda24-Nov-05 0:48
Marc Soleda24-Nov-05 0:48 
QuestionCrystal Reports Print Preview Pin
Anup Singh J23-Nov-05 23:59
Anup Singh J23-Nov-05 23:59 
QuestionBIG TROUBLE WITH STORING DATA INTO SQL SERVER 7.0,IN VB.NET Pin
ajay bharti23-Nov-05 23:51
ajay bharti23-Nov-05 23:51 
AnswerRe: BIG TROUBLE WITH STORING DATA INTO SQL SERVER 7.0,IN VB.NET Pin
Steve Pullan24-Nov-05 0:10
Steve Pullan24-Nov-05 0:10 
AnswerRe: BIG TROUBLE WITH STORING DATA INTO SQL SERVER 7.0,IN VB.NET Pin
Briga24-Nov-05 0:42
Briga24-Nov-05 0:42 
QuestionMDAC Version Pin
sarah_chandran23-Nov-05 23:44
sarah_chandran23-Nov-05 23:44 
AnswerRe: MDAC Version Pin
Dave Kreskowiak25-Nov-05 4:07
mveDave Kreskowiak25-Nov-05 4:07 
GeneralRe: MDAC Version Pin
sarah_chandran25-Nov-05 18:34
sarah_chandran25-Nov-05 18:34 
GeneralRe: MDAC Version Pin
oakleaf29-Nov-05 4:31
oakleaf29-Nov-05 4:31 
QuestionSQL DB Update Pin
Briga23-Nov-05 23:18
Briga23-Nov-05 23:18 
Questiongrouping radio buttons Pin
Mugombi23-Nov-05 23:16
Mugombi23-Nov-05 23:16 
AnswerRe: grouping radio buttons Pin
Briga23-Nov-05 23:28
Briga23-Nov-05 23:28 
Questiondatabase problem Pin
RiNaZaiNoN23-Nov-05 15:54
RiNaZaiNoN23-Nov-05 15:54 
AnswerRe: database problem Pin
Steve Pullan23-Nov-05 16:51
Steve Pullan23-Nov-05 16:51 
Questionaccess and vb6 Pin
RiNaZaiNoN23-Nov-05 15:15
RiNaZaiNoN23-Nov-05 15:15 
AnswerRe: access and vb6 Pin
toxcct24-Nov-05 1:57
toxcct24-Nov-05 1:57 
Questionaccess and vb6 Pin
RiNaZaiNoN23-Nov-05 15:12
RiNaZaiNoN23-Nov-05 15:12 

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.