Results 1 to 2 of 2

Thread: How to use the array in diagram Basic?

  1. #1
    AndersonDiaz is offline Senior Member
    Join Date
    Dec 2009
    Posts
    311
    Rep Power
    3

    Default How to use the array in diagram Basic?

    I want to make a game of poker in VB. But for this game, I'll have to use the concept of the array, and I do not know much about arrays. Plz give any helpful info (or coding) on the use of arrays in VB? Also, if you can tell the various types of arrays, which are used in various types of situation.

  2. #2
    TaylorRyan is offline Senior Member
    Join Date
    Dec 2009
    Posts
    307
    Rep Power
    3

    Default

    If you would like to make an array in the declaration the declaration of an array, after that you have to add a reservation after the new variable name and its bracket. I introduced you to the code arrays in Visual Basic:

    Dim CustomerName(20) As String
    Dim num As Integer
    Private Sub addName()
    For num = 1 To 10
    CustomerName(num) = InputBox("Enter the Customer name", "Enter Name", "", 1100, 2100)
    If CustomerName(num) <> "" Then
    Form1.Print CustomerName(num)
    Else
    End
    End If
    Next
    End Sub

    Private Sub Exit_Click()
    End
    End Sub

    Private Sub Start_Click()
    Form1.Cls
    addName

Similar Threads

  1. Array of array in PHP
    By Davismoore in forum Programming
    Replies: 2
    Last Post: 02-27-2010, 11:41 AM
  2. Array basics in C++
    By arsenal in forum Programming
    Replies: 0
    Last Post: 10-05-2009, 12:36 PM
  3. Array
    By techno23 in forum General Software Terms
    Replies: 0
    Last Post: 03-26-2008, 10:39 AM
  4. Pin Grid Array
    By vandana43 in forum Processors
    Replies: 0
    Last Post: 03-19-2008, 11:06 AM
  5. Land Grid Array
    By vandana43 in forum Processors
    Replies: 0
    Last Post: 03-19-2008, 10:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48