Click here to Skip to main content
15,911,848 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to call DLL Pin
himuskanhere5-Jun-06 21:06
himuskanhere5-Jun-06 21:06 
Questionhelp me---Student Information Management System Pin
snailflying5-Jun-06 19:04
snailflying5-Jun-06 19:04 
AnswerRe: help me---Student Information Management System Pin
Steve Pullan5-Jun-06 19:58
Steve Pullan5-Jun-06 19:58 
AnswerRe: help me---Student Information Management System Pin
Christian Graus5-Jun-06 22:05
protectorChristian Graus5-Jun-06 22:05 
QuestionConnection error Pin
zenithmaximus5-Jun-06 18:20
zenithmaximus5-Jun-06 18:20 
QuestionFind maximum value from a record Pin
mayhem_rules5-Jun-06 18:07
mayhem_rules5-Jun-06 18:07 
AnswerRe: Find maximum value from a record Pin
Kschuler6-Jun-06 10:49
Kschuler6-Jun-06 10:49 
GeneralRe: Find maximum value from a record Pin
mayhem_rules6-Jun-06 20:47
mayhem_rules6-Jun-06 20:47 
Thnx Kschuler. the 1st query will give us the max value for each field. Also, the 2nd query, I am not sure if it works, may give us just one value. wat i neede is the max value of all the fields for each record. right now i am getting each field (every record) in an array, sorting it and getting the highest value from it. see the code below.

myrow = DS.Tables("psrec").Rows(0) '1 record - 24 fields

Dim myIntArray(24) As Integer
For i = 0 To 23
myIntArray(i) = myrow(i)
Next

Array.Sort(myIntArray)
maxunits = myIntArray(24)

wat leaves me stumped is that since the array starts from 0, it should end at 23. However, the maxvalue can be found at myIntArray(24). when i print the array using the code,
For i = 0 To 23
Console.WriteLine(myIntArray(i))
Next

I always get 0 for myIntArray(0) for every record and the actual values are displayed from myIntArray(1). Therefore, one value is missed since the array prints till myIntArray(23). The last value is at myIntArray(24).

Can you explain this to me...


With Best Regards,

Mayur
GeneralRe: Find maximum value from a record Pin
Kschuler7-Jun-06 2:52
Kschuler7-Jun-06 2:52 
QuestionWindow Service Pin
nitin_ion5-Jun-06 17:42
nitin_ion5-Jun-06 17:42 
QuestionHow To Set a User Control Property from a VB Code Module? [modified] Pin
hmaccord5-Jun-06 16:24
hmaccord5-Jun-06 16:24 
AnswerRe: How To Set a User Control Property from a VB Code Module? [modified] Pin
hmaccord9-Jun-06 1:24
hmaccord9-Jun-06 1:24 
QuestionAbout ADODB connection!!! Pin
orananif5-Jun-06 14:58
orananif5-Jun-06 14:58 
QuestionData Passing Pin
New_Coder5-Jun-06 12:00
New_Coder5-Jun-06 12:00 
QuestionCheck security for editing of datagrid Pin
Sai_Ram5-Jun-06 11:02
Sai_Ram5-Jun-06 11:02 
AnswerRe: Check security for editing of datagrid Pin
Syed Ali Raza5-Jun-06 12:24
Syed Ali Raza5-Jun-06 12:24 
QuestionCapturing an image through webcam in VB6.0 Pin
gsaichaitanya5-Jun-06 5:27
gsaichaitanya5-Jun-06 5:27 
QuestionVB.NET - XtraReport Not responding Pin
obuli_salem5-Jun-06 4:36
obuli_salem5-Jun-06 4:36 
QuestionProblem using textbox for searching in DataGrid Pin
Syed Ali Raza5-Jun-06 4:14
Syed Ali Raza5-Jun-06 4:14 
AnswerRe: Problem using textbox for searching in DataGrid Pin
Kschuler5-Jun-06 8:46
Kschuler5-Jun-06 8:46 
GeneralRe:Thanks Pin
Syed Ali Raza5-Jun-06 12:00
Syed Ali Raza5-Jun-06 12:00 
Questionprogress bar Pin
militiaware5-Jun-06 4:09
militiaware5-Jun-06 4:09 
Questionidle system Pin
militiaware5-Jun-06 3:43
militiaware5-Jun-06 3:43 
Questionstream reader Pin
militiaware5-Jun-06 3:27
militiaware5-Jun-06 3:27 
AnswerRe: stream reader Pin
Dustin Metzgar5-Jun-06 4:02
Dustin Metzgar5-Jun-06 4:02 

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.