Click here to Skip to main content
15,895,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Read file data when opening from... Pin
Christian Graus3-Apr-06 16:01
protectorChristian Graus3-Apr-06 16:01 
GeneralRe: Read file data when opening from... Pin
Taen_Karth3-Apr-06 16:06
Taen_Karth3-Apr-06 16:06 
GeneralRe: Read file data when opening from... Pin
Christian Graus3-Apr-06 16:09
protectorChristian Graus3-Apr-06 16:09 
QuestionHelp with array code Pin
Solid Snake3-Apr-06 14:57
Solid Snake3-Apr-06 14:57 
AnswerRe: Help with array code Pin
Christian Graus3-Apr-06 15:08
protectorChristian Graus3-Apr-06 15:08 
GeneralRe: Help with array code Pin
Solid Snake4-Apr-06 3:49
Solid Snake4-Apr-06 3:49 
GeneralRe: Help with array code Pin
Christian Graus4-Apr-06 13:45
protectorChristian Graus4-Apr-06 13:45 
AnswerRe: Help with array code Pin
FrankyT4-Apr-06 13:57
FrankyT4-Apr-06 13:57 
ok here:

Dim i() As Integer 'create a array of ints with 0 length
For j As Integer = 0 To 1000000000
ReDim Preserve i(j) ' redefine the array in memory, keeping the existing values
i(j) = j
Next
return i
advice:
1) everything is reference in VB (except integral primatives like ints )
2) arrays are declared to have a lengthh adn don't like it when their boundries are broken
3) mixing .count and .length lead to trying to remember which is "0 based" and which is "1 based"
4) if you get an indexOutOfRange violation check your iterators
5) redim is your friend
6) collections are often a better choice
7) avoid mixing collections and arrays (collections are 1 based and always have >= 1 member)
8) use for each when ever applicable (another reason to avoid mixing arrays with collections)

this really should all be in your textbook. Look it up...

good luck


hey...slang is the vernacular for the vernacular...wow
GeneralRe: Help with array code Pin
Solid Snake5-Apr-06 6:56
Solid Snake5-Apr-06 6:56 
Questionvb to vb.net Pin
machman13-Apr-06 13:08
machman13-Apr-06 13:08 
AnswerRe: vb to vb.net Pin
Christian Graus3-Apr-06 15:06
protectorChristian Graus3-Apr-06 15:06 
AnswerRe: vb to vb.net Pin
Chatura Dilan3-Apr-06 15:16
Chatura Dilan3-Apr-06 15:16 
QuestionDatagrid - Reload data - Timer? Pin
NewbieDave3-Apr-06 11:36
NewbieDave3-Apr-06 11:36 
AnswerRe: Datagrid - Reload data - Timer? Pin
Christian Graus3-Apr-06 15:37
protectorChristian Graus3-Apr-06 15:37 
Questionarray with listview Pin
calmeat3-Apr-06 9:16
calmeat3-Apr-06 9:16 
QuestionTCPListener.socket closes on send Pin
Bertymas3-Apr-06 8:25
Bertymas3-Apr-06 8:25 
Questionaspx web pages.......... Pin
daviiie3-Apr-06 7:40
daviiie3-Apr-06 7:40 
AnswerRe: aspx web pages.......... Pin
daviiie3-Apr-06 8:09
daviiie3-Apr-06 8:09 
GeneralRe: aspx web pages.......... Pin
simonwhale3-Apr-06 10:36
simonwhale3-Apr-06 10:36 
GeneralRe: aspx web pages.......... Pin
daviiie3-Apr-06 10:40
daviiie3-Apr-06 10:40 
GeneralRe: aspx web pages.......... Pin
machman13-Apr-06 14:29
machman13-Apr-06 14:29 
GeneralRe: aspx web pages.......... Pin
FrankyT5-Apr-06 13:52
FrankyT5-Apr-06 13:52 
QuestionConverting international date formats Pin
Jeanne Dixon3-Apr-06 6:52
Jeanne Dixon3-Apr-06 6:52 
Questionregister ocx at .net 2003 Pin
SVb.net3-Apr-06 5:55
SVb.net3-Apr-06 5:55 
AnswerRe: register ocx at .net 2003 Pin
FrankyT5-Apr-06 13:42
FrankyT5-Apr-06 13:42 

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.