Normal Topic SelectTreeItem question (Read 880 times)
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
SelectTreeItem question
Apr 28th, 2005 at 3:16am
Print Post Print Post  
Hello all
Can someone point out my mistakes (on this question only please, im sure we dont have that much bandwidth)
Im simply trying to make a command button to print current form, would like it to save and print even more, but little steps first.
Here is what I have that has no errors yet does not work.

var vRun as Int

vrun = @SelectTreeItem("search update menu!record commands!printing commands!print form to default(no background)")

all help and most kidding greatly appreciated
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
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 question
Reply #1 - Apr 28th, 2005 at 6:21am
Print Post Print Post  
Hi Flip,

In order to narrow down failed step, please use the writeln command when you are debugging @SelectTreeItem( ). Just take one step at a time and keep adding one more step until the whole chain of steps are executed successfully..


var vRun as Int 

vrun = @SelectTreeItem("search update menu!record commands!printing commands!print form to default (no background)")


If vRun = 1 then
     Writeln ("Mission Successful")
Else
     Writeln ("Mission Failed")


In your above code, the problem is last step.  You missed a space.

You entered
print form to default(no background)

It should be
print form to default (no background)

There is a space between Default and (no background)





  
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 question
Reply #2 - Apr 28th, 2005 at 6:42am
Print Post Print Post  
Quote:
Here is what I have that has no errors yet does not work.


There will not be any error flag, but WriteLn window in the above debugging procedure will expose and reveal the individual malfunctioning step.
  
Back to top
 
IP Logged
 
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Re: SelectTreeItem question
Reply #3 - Apr 28th, 2005 at 3:13pm
Print Post Print Post  
Bharat, my friend.
You have been promoted to super hero status!
The writein command while debugging is beautiful. As always Im grateful for your help.

  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged