Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4

Thread: tree error

  1. #1
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534

    Star tree error

    i want to delete a node but i get error when nothing is selected:

    Code:
    SelectedTab = Tree.GetSelectedNode("Tab_Panel");
    TabDataTable = Tree.GetNode("Tab_Panel", SelectedTab);
    TabText = TabDataTable.Text
    	if SelectedTab == "1" or SelectedTab == "1.1" then else
    	Tree.RemoveNode("Tab_Panel", SelectedTab);
    		end
    i get that error when nothing is selected:

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    you need to check is there is a select item

    try it like this
    Code:
    SelectedTab = Tree.GetSelectedNode("Tab_Panel");
    if SelectedTab  then
        TabDataTable = Tree.GetNode("Tab_Panel", SelectedTab);
        TabText = TabDataTable.Text
        if SelectedTab == "1" or SelectedTab == "1.1" then else
    	Tree.RemoveNode("Tab_Panel", SelectedTab);
        end
    end
    and btw, i did read your pm, i'll look into it as soon as i can get back on the pc....kids driven me mad today, lol
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    same error but line4

    is it the tree object always giving me errors

  4. #4
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    not the tree persay its the table its not holding any data so u will get that error. [check out the apz i posted in your other thread may provide some insight for ya] but dont count rizla out for he's far better then i am.

Similar Threads

  1. Tree menu error
    By tino in forum AutoPlay Media Studio 6.0
    Replies: 4
    Last Post: 06-16-2006, 07:33 PM
  2. Tree object menu error issue.
    By 4thstar in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 11-25-2005, 09:13 AM
  3. ZipExtract "callback" error
    By Darwin in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 02-21-2005, 06:34 PM
  4. Function: Blowfish Encrypt/Decrypt Strings
    By Lorne in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-31-2004, 03:16 PM
  5. SUF6.0.0.2 -- installer hangs.
    By jassing in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-19-2001, 11:28 PM

Posting Permissions

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