Click here to Skip to main content
15,921,212 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: implementing a basic VPN in vb.net 2005 Pin
Dave Kreskowiak11-Feb-08 8:13
mveDave Kreskowiak11-Feb-08 8:13 
QuestionHow to delete temporary files ,cookies and cache in vb.net? Pin
AshuVyas10-Feb-08 20:53
AshuVyas10-Feb-08 20:53 
AnswerRe: How to delete temporary files ,cookies and cache in vb.net? Pin
Guffa11-Feb-08 0:07
Guffa11-Feb-08 0:07 
QuestionRSA Encryption Key Pin
Sean Ferguson10-Feb-08 19:40
Sean Ferguson10-Feb-08 19:40 
GeneralRe: RSA Encryption Key Pin
Paul Conrad21-Mar-08 9:40
professionalPaul Conrad21-Mar-08 9:40 
GeneralArray population issue Pin
Dee Kay10-Feb-08 17:13
Dee Kay10-Feb-08 17:13 
GeneralRe: Array population issue Pin
nishkarsh_k10-Feb-08 18:52
nishkarsh_k10-Feb-08 18:52 
GeneralRe: Array population issue Pin
Dave Kreskowiak11-Feb-08 5:00
mveDave Kreskowiak11-Feb-08 5:00 
Dee Kay wrote:
'populates array values
For x As Integer = 0 To 1
playerData(x, 0).offenseRank = temp1
playerData(x, 1).defenseRank = temp2
playerData(x, 2).shootRank = temp3

x = x + 1

Next x


Look at what you did in this code. You setup a loop where on the first pass, x will be 0. You fill in your array, (0,0) (0,1) (0,2), then you increment x, so now it's 1, THEN YOU REACH THE "Next" statement, will will increment x again, so now it's 2. Since the For statement says 0 to 1, 2 is greater than 1, so the For/Next terminations, never filling in the (1,0) (1,1) (1,2) array values.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




QuestionReport issue Pin
Tauseef A10-Feb-08 16:56
Tauseef A10-Feb-08 16:56 
GeneralRe: Report issue Pin
John_Adams10-Feb-08 22:32
John_Adams10-Feb-08 22:32 
GeneralRe: Report issue Pin
Dave Kreskowiak11-Feb-08 4:56
mveDave Kreskowiak11-Feb-08 4:56 
Questionhow to automatically create a folder and compress it in vb .net 2008? Pin
meki_211810-Feb-08 13:54
meki_211810-Feb-08 13:54 
AnswerRe: how to automatically create a folder and compress it in vb .net 2008? Pin
x200710-Feb-08 20:52
x200710-Feb-08 20:52 
GeneralRe: how to automatically create a folder and compress it in vb .net 2008? Pin
meki_211811-Feb-08 14:23
meki_211811-Feb-08 14:23 
AnswerRe: how to automatically create a folder and compress it in vb .net 2008? Pin
Dave Kreskowiak11-Feb-08 4:52
mveDave Kreskowiak11-Feb-08 4:52 
GeneralRe: how to automatically create a folder and compress it in vb .net 2008? Pin
meki_211811-Feb-08 14:22
meki_211811-Feb-08 14:22 
GeneralRe: how to automatically create a folder and compress it in vb .net 2008? Pin
Dave Kreskowiak12-Feb-08 1:49
mveDave Kreskowiak12-Feb-08 1:49 
GeneralVBA form and non graphic members Pin
hwahlberg10-Feb-08 10:49
hwahlberg10-Feb-08 10:49 
GeneralAppliction od digital dictionary Pin
Abdul8510-Feb-08 7:13
Abdul8510-Feb-08 7:13 
GeneralCross post. Please ignore. Pin
pmarfleet10-Feb-08 7:52
pmarfleet10-Feb-08 7:52 
GeneralRe: Cross post. Please ignore. Pin
Paul Conrad10-Feb-08 8:09
professionalPaul Conrad10-Feb-08 8:09 
Generalsms reading 2 a project Pin
Nikhil Purameri10-Feb-08 6:26
Nikhil Purameri10-Feb-08 6:26 
GeneralRe: sms reading 2 a project Pin
Steven J Jowett11-Feb-08 1:38
Steven J Jowett11-Feb-08 1:38 
GeneralEncrypted Video Pin
Kumaran21cen10-Feb-08 0:40
Kumaran21cen10-Feb-08 0:40 
GeneralRe: Encrypted Video Pin
Mark Churchill10-Feb-08 2:58
Mark Churchill10-Feb-08 2:58 

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.