Normal Topic Programming tied to a check box. (Read 842 times)
Leezerd
Member
*
Offline


I wish I had a better
picture than this...

Posts: 49
Joined: Aug 23rd, 2004
Programming tied to a check box.
May 24th, 2005 at 3:23pm
Print Post Print Post  
I have an application with a few tab pages.  I have a check box that I would like to trigger a tab page to open.  Would the program look something like?:

If StartUp = true
then
@macro... etc.

Is there a command to open or switch tab pages??
  

How can you be in two places at once when you're not anywhere at all.
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Programming tied to a check box.
Reply #1 - May 24th, 2005 at 6:08pm
Print Post Print Post  
Use @SelectTreeItem, like this:

Code
Select All
var vOK as Int

If Start = "True" then {
     vOK = @SelectTreeItem("Application!Forms!Search/Update!Database!Form)")
     } 



This is understanding "tab pages" to refer to the tabs at the bottom of the Sesame window, not for individual "tabs" that you may have on a form.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Leezerd
Member
*
Offline


I wish I had a better
picture than this...

Posts: 49
Joined: Aug 23rd, 2004
Re: Programming tied to a check box.
Reply #2 - May 24th, 2005 at 8:39pm
Print Post Print Post  
Bob-

I was refering to tab pages on the form I created for my application.  I know I could do it with a macro.  Just don't know how to word my programming using a check box.  If the box shows a check mark on the form does that translate to "true" in programming terms?  If thats the case, I would think "if then" programming would work.
  

How can you be in two places at once when you're not anywhere at all.
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Programming tied to a check box.
Reply #3 - May 25th, 2005 at 12:01am
Print Post Print Post  
That is correct.

A checkmark in a box translates to "YES", "TRUE", "ON" and 1.

You could use use IF status="YES" then ThrowFocus(LE name on the page tab that you want).
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Leezerd
Member
*
Offline


I wish I had a better
picture than this...

Posts: 49
Joined: Aug 23rd, 2004
Re: Programming tied to a check box.
Reply #4 - May 25th, 2005 at 12:10pm
Print Post Print Post  
I got it to work.  Thanks Bob   Cheesy  Grin  8)
  

How can you be in two places at once when you're not anywhere at all.
Back to top
 
IP Logged