Click here to Skip to main content
15,921,454 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: help!! code execution taking to much time. Pin
Serge Lobko-Lobanovsky10-May-04 2:09
Serge Lobko-Lobanovsky10-May-04 2:09 
GeneralJet question by a newbie Pin
Member 102309028-Apr-04 4:21
Member 102309028-Apr-04 4:21 
GeneralRe: Jet question by a newbie Pin
Dave Kreskowiak28-Apr-04 4:27
mveDave Kreskowiak28-Apr-04 4:27 
GeneralRe: Jet question by a newbie Pin
Member 102309028-Apr-04 4:33
Member 102309028-Apr-04 4:33 
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 
Hi,
I have an array with emailaddresses that I have extracted from a file in an import function in my program. But the same e-mail adddress may occurre several times in the array if the user did add it several times in the file.

I need a way to delete duplicates and I need help. What I want is to replace an address (it will vary) with an emty string("") or a string I can later use for testing against(lest say the string "duplicate" is the replacement). I am having trouble with my loop or if. The inner if sentence does not work. I have put the e-mail addresses also in a second array called tab, and checks each value in the first array against each value in the second one. Any suggestions? This is what I have:

Dim K as integer=0<br />
Dim L as integer=0<br />
For Each email In emails<br />
  For Each em In emails2 <br />
     If K <> L  'if it is a duplicate <br />
       If emails(L).ToLower().Equals(emails2.ToLower())then   <br />
           emails(K)="duplicate"                                                                        End If<br />
     End If<br />
     L = L + 1<br />
  Next<br />
  K = K + 1<br />
  'MsgBox(emails(K)) 'only shows the value of the last element in the array. Next


IF anyone have a solution for how to do this, or another suggestion for a solution using for example RegEx I would really appreciate it Smile | :)
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 
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 

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.