Normal Topic @SelectTreeItem (Read 446 times)
NICEBERG
Full Member
Members
***
Offline


I came, I saw, I'm still
trying to figure it out!

Posts: 208
Location: Green Bay, WI
Joined: Dec 17th, 2003
@SelectTreeItem
Mar 24th, 2006 at 8:03pm
Print Post Print Post  
var vLeave as Int

//replaces shift-F10 to save and exit

if @add then
{
vLeave = @SelectTreeItem("Add Data Menu!Navigation!Save Record and Close Form (Shift-F10)")
}

if @update then
{
VLeave = @SelectTreeItem("Search Update Menu!Navigation!Save Record and Close Form (Shift-F10)")
}

vLeave = ""

I have the above code in a command button. The record gets saved but the program doesn't exit. If I click on Navigation, in either mode, the correct command is highlighted in red. I must be close but, like the story of my life, I"m just a little off. Suggestions (about the program I mean!).
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @SelectTreeItem
Reply #1 - Mar 24th, 2006 at 8:07pm
Print Post Print Post  
@SelectTreeItem() can not be used to close the form that the programming is running from. Use @Exit to close the form, and @Save or FormCommit("") to save the record.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
NICEBERG
Full Member
Members
***
Offline


I came, I saw, I'm still
trying to figure it out!

Posts: 208
Location: Green Bay, WI
Joined: Dec 17th, 2003
Re: @SelectTreeItem
Reply #2 - Mar 24th, 2006 at 10:27pm
Print Post Print Post  
Thanks Ray - worked great.
  
Back to top
 
IP Logged