Click here to Skip to main content
15,917,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Blank screen Pin
Luc Pattyn11-Feb-08 1:54
sitebuilderLuc Pattyn11-Feb-08 1:54 
Questionimplementing a basic VPN in vb.net 2005 Pin
Warp10-Feb-08 23:46
Warp10-Feb-08 23:46 
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 
I am having a hard time populating an structured array. (0,0),(0,1),and (0,2) populate fine but I cannot get the rest if to do so. This is small part of a BasketBall Game simulation project, and it is kicking my butt. Here is my code:

Option Explicit On
Option Strict On

Public Class Form1
Dim playerData(1, 2) As Player
Dim temp1 As Integer
Dim temp2 As Integer
Dim temp3 As Integer

Structure Player
Public offenseRank As Integer
Public defenseRank As Integer
Public shootRank As Integer
Public shotsTaken As Integer
Public scorePerQuarter As Integer
End Structure
Public Sub FillArray()
'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

End Sub


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim randomGenerator As New Random

For x As Integer = 0 To 1
temp1 = randomGenerator.Next(8, 11)
temp2 = randomGenerator.Next(8, 11)
temp3 = randomGenerator.Next(55, 80)
x = x + 1

Call FillArray()
Next x


OffDisplayLabel.Text = CStr(playerData(0, 0).offenseRank)
DefDisplayLabel.Text = CStr(playerData(0, 1).defenseRank)
ShootDisplayLabel.Text = CStr(playerData(0, 2).shootRank)
Label1.Text = CStr(playerData(1, 0).offenseRank)
Label2.Text = CStr(playerData(1, 1).defenseRank)
Label3.Text = CStr(playerData(1, 2).shootRank)


End Sub
End Class


thanks in advance
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 
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 

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.