what do u mean by record?
reading a record from the SQL DB?
Private Sub check_user_name()
Try
Dim val As String = Nothing
Dim com As SqlCommand
Dim rd As SqlDataReader
con.Close()
con.Open()
com = New SqlCommand("spn_tbln_Login_master_uname_check", con)
com.CommandType = CommandType.StoredProcedure
com.Parameters.Add("@u_name", Trim(txtUser_Name.Text))
rd = com.ExecuteReader
If rd.HasRows = True Then
While rd.Read
val = Trim(rd(0))
End While
End If
If val = Nothing Then
u_name_correct = True
Else
u_name_correct = False
End If
rd.Close()
Catch ex As Exception
MsgBox(ex.Message.ToString())
End Try
End Sub
I would like to create a deck of cards in an array with certain properties
like faceValue and cardSuit and inDeck(boolean)
it will be used for blackjack
is there a way to just create a record so that i can call it up like this
Dim cardArray(13,4) as string
for faceValue as int = 1 to 13
for suit as int = 1 to 4
' how can i declare array so that i can store .Suit ???
cardArray(faceValue,suit).Suit = suit
'how can i declare array so that i can store .Number ???
cardArray(faceValue,suit).Number = faceValue
next
next