Normal Topic Unexpected navigation (Read 2917 times)
Peter
Member
*
Offline


No personal text

Posts: 22
Joined: Jan 7th, 2004
Unexpected navigation
Feb 21st, 2005 at 1:55pm
Print Post Print Post  
Hi

I have some subroutines in Global Code that include some Throwfocus() instructions. It appears that these subroutines are being unexpectedly invoked after I have carried out an XUSR through programming on a tab page. The result I see is that after my XUSR the cursor is not moving to the next field on the tab page, as I had planned, but is jumping to a field halfway down the next tab page. I have not called the subroutine, yet remarking out the Throwfocus lines within it stop this happening.

Any thoughts please?

Peter
  
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: Unexpected navigation
Reply #1 - Feb 21st, 2005 at 3:59pm
Print Post Print Post  
Hello Peter,

Could you send your application to support@lantica.com, so I can have a look at it and see what is causing this. Both the DB and DAT files.

Thank you,
-Ray
  

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


No personal text

Posts: 22
Joined: Jan 7th, 2004
Re: Unexpected navigation
Reply #2 - Feb 21st, 2005 at 4:36pm
Print Post Print Post  
Hi Ray

Files should be with you any minute!

Thanks for your quick response

Peter
  
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: Unexpected navigation
Reply #3 - Feb 21st, 2005 at 4:57pm
Print Post Print Post  
Hello Peter,

In your application you have the CIV1 element programmed to call the VATAGAIN() subroutine when the Form changes.

When you change the Erect At element you fire the On Element Change event and then the On Form Change event fires which calls the subroutine which throws focus to the other tab page.

If you remove the call to the Subroutine in the On Form Change event the focus goes to the Plot Section element as you expect it to.

-Ray
  

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


No personal text

Posts: 22
Joined: Jan 7th, 2004
Re: Unexpected navigation
Reply #4 - Feb 21st, 2005 at 5:26pm
Print Post Print Post  
Hi Ray

Thank you so much - that's going beyond the call of duty when I've made such a mistake! I meant to call the subroutine from an "On Element Change" but must have had a slip of fingers.

Best wishes and congratulations on such brilliant support.

Peter

  
Back to top
 
IP Logged