SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Dec 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    unable to retrieve an Item Text from the TreeView

    Hi All,

    I'm trying to retrieve a text from the TreeView.

    getting an index, like /#1/#1 instead of text if using TreeView.GetSelText()

    -The method GetContents() returns the following:
    [1] #/1
    [2] #/1/#1
    [3] #/2
    [4] #/2/#2

    -and the method treeView.GetItemText(1)returns the following

    *** Error: 1 is not a valid item index


    How can I get a Text, not the index from the TreeView?
    it's a Java applet's JavaJFCTreeView

    Can anyone help me on this.

    Thanks!

  2. #2
    Senior Member
    Join Date
    May 2007
    Location
    LantianCity
    Posts
    103
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: unable to retrieve an Item Text from the TreeView

    treeView.GetItemText("#1")
    It never rains but it pours.
    Welcome to visit: <font color="blue">www.lantianwei.com</font>

  3. #3
    Junior Member
    Join Date
    Dec 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: unable to retrieve an Item Text from the TreeView

    [ QUOTE ]
    treeView.GetItemText("#1")

    [/ QUOTE ]

    lantianwei,

    this does not work, it gives a compiler error:
    "Type mismatch - Parameter iIndex to function GetItemText should be an INTEGER"

    Any other ideas?

    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 7.69%
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 10:40 AM.

Copyright BetaSoft Inc.