By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,806 Members | 1,361 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,806 IT Pros & Developers. It's quick & easy.

Searching in array: Visual Basic 2005

P: 1
Hi all, would like to check whether there is a built-in function in Visual Basic Studio 2005 that can search through the contents of an array and return the index?

Currently, I'm using a 'for loop' to search through the items in the array one by one and it is rather slow. I'm doing a vigenere cipher program which takes in a text file containing encrypted text and is able to guess the keyword which was used during encryption. The code works but for each letter in the paragraph, it loops for 26 times to find the matching alphabet.

Please advice. Thanks.
Mar 30 '07 #1
Share this Question
Share on Google+
1 Reply


vijaydiwakar
100+
P: 579
Hi all, would like to check whether there is a built-in function in Visual Basic Studio 2005 that can search through the contents of an array and return the index?

Currently, I'm using a 'for loop' to search through the items in the array one by one and it is rather slow. I'm doing a vigenere cipher program which takes in a text file containing encrypted text and is able to guess the keyword which was used during encryption. The code works but for each letter in the paragraph, it loops for 26 times to find the matching alphabet.

Please advice. Thanks.
use collection insted of array
and its contains property will help u to do so
Mar 30 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.