DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: trouble with Type command

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    trouble with Type command

    [Originally posted by John Sep£lveda]

    I was using the following code and I am having problems entering data into the array. any help would be much apprciated.

    ’ ’  Private Type emp
    ’ ’ ’ ’ ’  fn As String
    ’ ’ ’ ’ ’  ln As String
    ’ ’  End Type
    Dim myarray(2) As emp

    Private Sub Command1_Click()
    myarray.fn(1) = "one"
    End Sub

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:trouble with Type command

    [Originally posted by Alexandre Locas]

    Instead of
    myarray.fn(1) = "one"
    Try
    myarray(1).fn = "one"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center