Normal Topic selecttreeitem syntax (Read 686 times)
aussie
Member
*
Offline


No personal text

Posts: 4
Joined: Dec 15th, 2003
selecttreeitem syntax
Feb 2nd, 2004 at 2:56am
Print Post Print Post  
I'm having trouble with the @selectreeitem syntax.

The example in the handbook does not really meet my needs.

I was wondering if it was possible to show here some examples of the @selecttreeitem syntax & their uses.

Basically i'm trying to use a command button to open a form. (so that users press buttons rather than use the command tree)

I'm not a programmer so pls keep it simple

Many thanks in advance

Aussie
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: selecttreeitem syntax
Reply #1 - Feb 2nd, 2004 at 2:09pm
Print Post Print Post  
The @SelectTreeItem command works perfectly for me. What you have to do is to go just one step at a time. And Thank goodness, we have been provided with Writeln debugging tool that helps you step by step.

Put the followingind Code in Command Button element entry event.

var vSuccess as Int

if Price <> "" then

     {
           @save

           vSuccess = @SelectTreeItem ("NewSesameapplication!Forms!Search/Update!NewDatabase!NewForm")
     }

if vSuccess = 1 then
     Writeln ("Mission Successful")


Price is an element in my  form, you can also avoid the @save command you wish to.   Just one tree item at a time. This can be tested in Preview of sdesigner unlike x-family commands. I hope this helps.
  
Back to top
 
IP Logged
 
aussie
Member
*
Offline


No personal text

Posts: 4
Joined: Dec 15th, 2003
Re: selecttreeitem syntax
Reply #2 - Feb 2nd, 2004 at 10:13pm
Print Post Print Post  
many thanks Bharat - any help is much appreciated  Smiley
  
Back to top
 
IP Logged