Click here to Skip to main content
16,010,268 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Absolutely URGENT help needed - Collections Pin
new_rez26-Apr-07 14:45
new_rez26-Apr-07 14:45 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:50
protectorChristian Graus26-Apr-07 14:50 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Colin Angus Mackay26-Apr-07 14:25
Colin Angus Mackay26-Apr-07 14:25 
GeneralRe: Absolutely URGENT help needed - Collections Pin
new_rez26-Apr-07 14:27
new_rez26-Apr-07 14:27 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Colin Angus Mackay26-Apr-07 14:33
Colin Angus Mackay26-Apr-07 14:33 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:36
protectorChristian Graus26-Apr-07 14:36 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:33
protectorChristian Graus26-Apr-07 14:33 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:32
protectorChristian Graus26-Apr-07 14:32 
Like Colin said : why use forms ?


new_rez wrote:
InputBox


Don't do this, it's VB6 rubbish. Don't use forms at all, but when you do, don't use stuff hanging over from VB6. The easy way to avoid it - never use the visual basic namespace.

new_rez wrote:
Dim intNumbers(19) As integer 'array with 10 elements


This array plainly has 19 elements, not 10.


new_rez wrote:
For intCount = 1 To 10
lstNumbers.Items.Add(intNumbers(intCount - 1))
Next


why not start your loop at 0, instead of doing -1 every time ?

new_rez wrote:
Dim dblTotal As Double
Dim dblAverage As Double
'total
For intCount = 0 To 9
dblTotal = dblTotal + intNumbers(intCount)
Next

'average
dblAverage = dblTotal / 10


You're on the right track, here. I need to post this, so I can refer back to the question, it's the negative values you have trouble with ?


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

AnswerRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:15
protectorChristian Graus26-Apr-07 14:15 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Colin Angus Mackay26-Apr-07 14:20
Colin Angus Mackay26-Apr-07 14:20 
AnswerRe: Absolutely URGENT help needed - Collections Pin
Colin Angus Mackay26-Apr-07 14:19
Colin Angus Mackay26-Apr-07 14:19 
Questionregular expression Pin
aldo hexosa26-Apr-07 12:50
professionalaldo hexosa26-Apr-07 12:50 
AnswerRe: regular expression Pin
Christian Graus26-Apr-07 13:03
protectorChristian Graus26-Apr-07 13:03 
GeneralRe: regular expression Pin
aldo hexosa1-May-07 3:41
professionalaldo hexosa1-May-07 3:41 
GeneralRe: regular expression Pin
Christian Graus1-May-07 10:37
protectorChristian Graus1-May-07 10:37 
QuestionCan't access AppSettings of appConfig file Pin
PollyAnna33326-Apr-07 6:01
PollyAnna33326-Apr-07 6:01 
AnswerRe: Can't access AppSettings of appConfig file Pin
Dave Kreskowiak26-Apr-07 6:38
mveDave Kreskowiak26-Apr-07 6:38 
AnswerRe: Can't access AppSettings of appConfig file Pin
kubben26-Apr-07 8:12
kubben26-Apr-07 8:12 
GeneralRe: Can't access AppSettings of appConfig file Pin
PollyAnna33326-Apr-07 22:14
PollyAnna33326-Apr-07 22:14 
AnswerRe: Can't access AppSettings of appConfig file Pin
PollyAnna33327-Apr-07 5:09
PollyAnna33327-Apr-07 5:09 
GeneralRe: Can't access AppSettings of appConfig file Pin
kubben27-Apr-07 8:11
kubben27-Apr-07 8:11 
GeneralRe: Can't access AppSettings of appConfig file Pin
PollyAnna33329-Apr-07 21:13
PollyAnna33329-Apr-07 21:13 
QuestionWrite a tag to a jpeg file in Vista Pin
bigshop26-Apr-07 5:56
bigshop26-Apr-07 5:56 
QuestionCheck for keypress on timer tick Pin
RyanPotter26-Apr-07 5:36
RyanPotter26-Apr-07 5:36 
AnswerRe: Check for keypress on timer tick Pin
Dave Kreskowiak26-Apr-07 5:45
mveDave Kreskowiak26-Apr-07 5:45 

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.