SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jun 2003
    Posts
    170
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Getting an item in a java collection object

    I have a collection of objects returned by using:

    JavaObject.Object.GetAllTuples

    According to the java method wizard, this returns a NestestedCollectionNode.

    Does anyone know how I would reference one of the objects, eg in .Net it would be DotNetObject.Object.GetAllTuples.Item(1)

    What's the syntax for Java? I tried JavaObject.Object.GetAllTuples.get(1) but it doesn't work.

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Posts
    240
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting an item in a java collection object

    Hi dougal1709,
    You can try using the undocumented mic_arr_get.
    'Get Java arrays.
    set comps = JavaWindow("SwingSet").JavaInternalFrame("Internal Frame Generator").Object.getComponents()
    'This is the actual workaround - notice the special undocumented command mic_arr_get
    set currComp = comps.mic_arr_get(0)
    'Now that we have the item we want from the array, letís print it
    msgbox currComp.toString()
    Regards,
    M.

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    170
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting an item in a java collection object

    You sir, are a genius. Thanks.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:29 AM.

Copyright BetaSoft Inc.