Hello, I am Serkan
Subject: help tree1
Auto Media PlayStudio
İf Tree1.selected=A then
Message("B");
end
İf Tree1.selected=B then
Message("B");
end
Please Help me
Thanks You
Professional Software Development Tools
Hello, I am Serkan
Subject: help tree1
Auto Media PlayStudio
İf Tree1.selected=A then
Message("B");
end
İf Tree1.selected=B then
Message("B");
end
Please Help me
Thanks You
add this to the tree's on select event
output enhanced with AMS Code PrettyCode:--Returns the selected node index as a string vale sSelected = Tree.GetSelectedNode( "Tree1"); --convert the result ot a number string nSelected = String.ToNumber(sSelected); --returned values for A and B are ------ 1.1 = A and 1.2 = B -- test for A if nSelected == 1.1 then Dialog.Message( "Notice", "A", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); --was not A test for B elseif nSelected == 1.2 then Dialog.Message( "Notice", "B", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); --was not B show fault message else Dialog.Message( "Notice", "fault", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); end
Last edited by Desrat; 04-25-2007 at 09:25 AM.
hellllo...
I'm a new member and i want to ask about same thing but in different way..
if i want to use the tree with button ..i mean i want to select some thing in the tree and then press the button and the program will open a file when i do this step????
can you help me pleaseeeeeeeee
zoya