Click here to Skip to main content
16,004,924 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralTabbing Hell Pin
Greg Eales28-Apr-04 3:52
Greg Eales28-Apr-04 3:52 
Questioncan anybody give me code of getting RGB value form an image Pin
Member 41696028-Apr-04 2:34
Member 41696028-Apr-04 2:34 
AnswerRe: can anybody give me code of getting RGB value form an image Pin
Dave Kreskowiak28-Apr-04 3:59
mveDave Kreskowiak28-Apr-04 3:59 
GeneralNeed help with Loop and comparing values Pin
ingerXP27-Apr-04 22:49
ingerXP27-Apr-04 22:49 
GeneralRe: Need help with Loop and comparing values Pin
Syed Abdul Khader28-Apr-04 0:43
Syed Abdul Khader28-Apr-04 0:43 
GeneralRe: Need help with Loop and comparing values Pin
ingerXP28-Apr-04 23:52
ingerXP28-Apr-04 23:52 
GeneralRe: Need help with Loop and comparing values Pin
Ian Darling28-Apr-04 0:49
Ian Darling28-Apr-04 0:49 
GeneralRe: Need help with Loop and comparing values Pin
ingerXP28-Apr-04 23:45
ingerXP28-Apr-04 23:45 
Hi, and thanks for the advise.
I do not know what I am doing wrong in vb when it comes to arrays, but things that easily works with arrays in C++ or Java I can not make to work in VB6 or VB.NET..

However, I am now putting only unique emailaddresses in a StringDictionary thanks to your advise.
If anybody knows how I can add strings directly to the StringDictionary collection without extracting them first to a MatchCollection, I would appr. it. I think it should be possible to use the class Match and a method called findNext or something like that. It may reduce the overhead of having data added first in one collection, and then into an other.

This is the code:

Private Function ExtractEmailAddressesFromString2(ByVal source As String) As StringDictionary<br />
        Dim mc As MatchCollection<br />
        Dim i As Integer<br />
        Dim myCol As New StringDictionary<br />
        Dim m As String<br />
        ' expression from www.regexlib.com extracting email-addresses<br />
        mc = Regex.Matches(source, "([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})")        <br />
<br />
       For i = 0 To mc.Count - 1<br />
          'if address is not in collection from before, it is added <br />
           If myCol.ContainsKey(mc(i).Value )=False Then                     <br />
               myCol.Add(mc(i).Value, "") 'key + value   <br />
            End If<br />
       Next            <br />
        Return myCol<br />
End function

GeneralCapturing Screenshots into an AVI file Pin
superwinsock27-Apr-04 19:03
superwinsock27-Apr-04 19:03 
GeneralRe: Capturing Screenshots into an AVI file Pin
Dave Kreskowiak28-Apr-04 1:19
mveDave Kreskowiak28-Apr-04 1:19 
GeneralRe: Capturing Screenshots into an AVI file Pin
superwinsock28-Apr-04 1:42
superwinsock28-Apr-04 1:42 
GeneralRe: Capturing Screenshots into an AVI file Pin
Dave Kreskowiak28-Apr-04 2:03
mveDave Kreskowiak28-Apr-04 2:03 
GeneralRe: Capturing Screenshots into an AVI file Pin
superwinsock28-Apr-04 2:16
superwinsock28-Apr-04 2:16 
GeneralRe: Capturing Screenshots into an AVI file Pin
Ray Cassick28-Apr-04 15:43
Ray Cassick28-Apr-04 15:43 
GeneralAccess Database Error Pin
Pugman81227-Apr-04 16:43
Pugman81227-Apr-04 16:43 
GeneralRe: Access Database Error Pin
Dave Kreskowiak27-Apr-04 17:04
mveDave Kreskowiak27-Apr-04 17:04 
GeneralRe: Access Database Error Pin
Pugman81227-Apr-04 17:22
Pugman81227-Apr-04 17:22 
GeneralRe: Access Database Error Pin
Dave Kreskowiak28-Apr-04 1:22
mveDave Kreskowiak28-Apr-04 1:22 
GeneralDocumentation design Pin
normanordas27-Apr-04 16:21
normanordas27-Apr-04 16:21 
GeneralRe: Documentation design Pin
Dave Kreskowiak27-Apr-04 17:03
mveDave Kreskowiak27-Apr-04 17:03 
GeneralRe: Documentation design Pin
Anonymous28-Apr-04 19:25
Anonymous28-Apr-04 19:25 
GeneralRe: Documentation design Pin
Dave Kreskowiak29-Apr-04 1:56
mveDave Kreskowiak29-Apr-04 1:56 
GeneralCalculation errors Pin
Randy S27-Apr-04 15:46
Randy S27-Apr-04 15:46 
GeneralRe: Calculation errors Pin
Dave Kreskowiak27-Apr-04 17:00
mveDave Kreskowiak27-Apr-04 17:00 
GeneralRe: Calculation errors Pin
Randy S28-Apr-04 1:47
Randy S28-Apr-04 1:47 

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.