For Programmers: Free Programming Magazines  


Home > Archive > Clarion > April 2004 > Erratic select(?Control) behaviour









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Erratic select(?Control) behaviour
Jesmond Spiteri

2004-04-22, 5:30 pm

I have a form with 6 tabs. On each form, there is a button in whose
embeds (accepted after generated tab), I am calling local procedures.
From these procedures, I am doing some processing and displaying
messages.

When I return back from the procedure, the system is selecting some
other controls in other tabs and does not keep me in the current tab.

Eg: I am on tab 3, press on the button, the local procedure is called
to do some calculation, but when it returns back to goes on to Tab no
1 and not on 3

Thanks
Jesmond
Neal Phillips

2004-04-22, 6:30 pm

>
> When I return back from the procedure, the system is selecting some
> other controls in other tabs and does not keep me in the current tab.
>
> Eg: I am on tab 3, press on the button, the local procedure is called
> to do some calculation, but when it returns back to goes on to Tab no
> 1 and not on 3
>


Jesmond
One way is to have a select statement at the end of your embedded code:
Select(?SomeControl)
Where ?SomeControl is on the Tab you want to return to.
Can be a locator or a button or anything you like.
HTH
Cheers
Neal


Jesmond Spiteri

2004-04-23, 4:30 am

"Neal Phillips" <NealRemove@RemoveAbleSoftware.co.nz> wrote in message news:<ifXhc.2727$_s.93065@news.xtra.co.nz>...
>
> Jesmond
> One way is to have a select statement at the end of your embedded code:
> Select(?SomeControl)
> Where ?SomeControl is on the Tab you want to return to.
> Can be a locator or a button or anything you like.
> HTH
> Cheers
> Neal



I already tried that. Thanks.
Jesmond Spiteri

2004-04-23, 5:30 am

"Neal Phillips" <NealRemove@RemoveAbleSoftware.co.nz> wrote in message news:<ifXhc.2727$_s.93065@news.xtra.co.nz>...
>
> Jesmond
> One way is to have a select statement at the end of your embedded code:
> Select(?SomeControl)
> Where ?SomeControl is on the Tab you want to return to.
> Can be a locator or a button or anything you like.
> HTH
> Cheers
> Neal


Hi Neal,
You wouldn't believe it. This seems to be caused by Message()
function. When I call the procedure , I am displaying certain messages
depending on any invalid data found and using EXIT to go out of the
procedure.

When I removed the message, the form stayed on the current tab.
Neal Phillips

2004-04-23, 2:30 pm

Hi Jesmond
That's interesting.
Perhaps you could use Capesoft Messagebox instead?
That is easy to drop in & very cheap to buy.
Cheers
Neal

> Hi Neal,
> You wouldn't believe it. This seems to be caused by Message()
> function. When I call the procedure , I am displaying certain messages
> depending on any invalid data found and using EXIT to go out of the
> procedure.
>
> When I removed the message, the form stayed on the current tab.



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com