Click here to Skip to main content
15,912,273 members
Home / Discussions / C#
   

C#

 
GeneralRe: Application hanging Pin
Luc Pattyn21-Mar-07 14:29
sitebuilderLuc Pattyn21-Mar-07 14:29 
GeneralRe: Application hanging Pin
S. Senthil Kumar21-Mar-07 19:06
S. Senthil Kumar21-Mar-07 19:06 
GeneralRe: Application hanging Pin
SakthiSurya21-Mar-07 19:22
SakthiSurya21-Mar-07 19:22 
GeneralRe: Application hanging Pin
S. Senthil Kumar21-Mar-07 19:28
S. Senthil Kumar21-Mar-07 19:28 
GeneralRe: Application hanging Pin
SakthiSurya21-Mar-07 19:52
SakthiSurya21-Mar-07 19:52 
GeneralRe: Application hanging Pin
Luc Pattyn22-Mar-07 12:37
sitebuilderLuc Pattyn22-Mar-07 12:37 
QuestionMultidimenitonal Arrays Pin
Eric (eD)20-Mar-07 18:22
Eric (eD)20-Mar-07 18:22 
AnswerRe: Multidimenitonal Arrays Pin
Guffa20-Mar-07 22:33
Guffa20-Mar-07 22:33 
Eric (eD) wrote:
Now the only method that I have been shown for this is BinarySearch(); but for this to work the array must be in ascending order.


You don't need to use a method for searching. Just loop throught the items and look for the value.

If the rows in the array have different meaning, perhaps you shouldn't use an array at all, but an object oriented solution like a list of objects. If you want to locate the items by a specific value, you can use a dictionary of objects. Example:

// create a dictionary<br />
Dictionary<int, Person> persons = new Dictionary<int, Person>;<br />
// add persons to the dictionary<br />
persons.Add(7, new Person("Paul", "Simon"));<br />
persons.Add(42, new Person("Art", "Garfunkel"));<br />
// find a person by key<br />
Person art = persons[42];


---
single minded; short sighted; long gone;

GeneralRe: Multidimenitonal Arrays Pin
joon vh.20-Mar-07 22:49
joon vh.20-Mar-07 22:49 
GeneralRe: Multidimenitonal Arrays Pin
Eric (eD)21-Mar-07 9:22
Eric (eD)21-Mar-07 9:22 
QuestionI want to get the create table query of existing table in access Pin
jesusara20-Mar-07 17:29
jesusara20-Mar-07 17:29 
AnswerRe: I want to get the create table query of existing table in access Pin
Christian Graus20-Mar-07 18:05
protectorChristian Graus20-Mar-07 18:05 
AnswerRe: I want to get the create table query of existing table in access Pin
Keshav V. Kamat20-Mar-07 18:28
Keshav V. Kamat20-Mar-07 18:28 
QuestionRun the next form by clicking Next button Pin
ahmad al-omar20-Mar-07 15:52
ahmad al-omar20-Mar-07 15:52 
AnswerRe: Run the next form by clicking Next button Pin
Christian Graus20-Mar-07 17:43
protectorChristian Graus20-Mar-07 17:43 
AnswerRe: Run the next form by clicking Next button Pin
Keshav V. Kamat20-Mar-07 18:25
Keshav V. Kamat20-Mar-07 18:25 
GeneralRe: Run the next form by clicking Next button Pin
ahmad al-omar21-Mar-07 6:01
ahmad al-omar21-Mar-07 6:01 
AnswerRe: Run the next form by clicking Next button Pin
Muammar©20-Mar-07 22:13
Muammar©20-Mar-07 22:13 
QuestionButton Click to call exe file. Pin
krajah1020-Mar-07 15:07
krajah1020-Mar-07 15:07 
AnswerRe: Button Click to call exe file. Pin
Dave Kreskowiak20-Mar-07 16:54
mveDave Kreskowiak20-Mar-07 16:54 
QuestionUrgent -Please Help Pin
Nermeenez20-Mar-07 15:07
Nermeenez20-Mar-07 15:07 
AnswerRe: Urgent -Please Help Pin
sean.m20-Mar-07 15:30
sean.m20-Mar-07 15:30 
GeneralRe: Urgent -Please Help Pin
Nermeenez20-Mar-07 22:16
Nermeenez20-Mar-07 22:16 
AnswerRe: Urgent -Please Help Pin
Keshav V. Kamat20-Mar-07 18:19
Keshav V. Kamat20-Mar-07 18:19 
GeneralRe: Urgent -Please Help Pin
Nermeenez20-Mar-07 22:14
Nermeenez20-Mar-07 22:14 

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.