DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2004
    Posts
    10

    Accessing objects in a 2 dimensional array.

    Thankyou all for your previouse help, it has been much appriciated, and now for another problem, i would value your help with.

    if i have a two dimensional array like this one ,
    destonationarray[0][5]

    and i have an object called subcient, stored in destonationarray [0][5] at position 0 in the first array part of the array


    and

    an object called destination stored here at [0][5] position 5 of the second part of the array

    how do i access the methords of the object called
    subclient. destonationarray[0][0].print(); allows me to access methords of the destination object.
    but i dont know the syntax to use methords of subclient.

    I have tried these

    Deststotarray[0][0].printthisclient();

    Deststotarray[0].printthisclient();
    Deststotarray[0].printthisclient()[];
    // these would probably be calling a 1d array

    Deststotarray[0][].printthisclient()

    Please help if can

  2. #2
    Join Date
    Mar 2003
    Posts
    84
    can you post your code, or what you have so far?
    I'm surprised more of you people don't get hit by cars.

  3. #3
    Join Date
    Jan 2004
    Posts
    10

    misconseption

    When writing the last post i had some misconseptions about arrays. any way i have worked that out now. sorry to waste your time and thankyou for your help.

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
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links