Warning a newb at work Oct 19, 2004 9:38 am
Hello all, I have 2 code scripts, one is the main or calling script and the other is the called script. I have coded the main calling script to run the second script when a user clicks a text/input box field. Like this...
if a_dlg_button = "txtCity_setfocus" then
a_dlg_button=""
script_play_local("CodeCityQry")
'
'I need something here to change the focus away from
'txtCity object to the "&Exit" button
'
'this next line doesn't work yet, I'll ask about this
'Global collection problem later!
'
' txtCity.object=QueryCollection.get("CT")
' a_dlg_button=""
end if
The second script fires ok and when it closes and returns
to the main script, IT AUTOMATICALLY FIRES THE SECOND SCRIPT AGAIN, in a mad loop as txtCity again receives focus!!!!!!!!
What I need to do in the above If statement is to give focus to a button object or anything for that matter to stop this run time looping.
if the button I'm, trying to give focus to is "&Exit" what is the code to give this button focus?
The main calling program is intended to be a series of text/input boxes that are clicked to generate a new dialog to facilitate the input of these text boxes.(You will not be allowed to modify the contents of the text boxes directly from the main calling code, but only through the called code/script which is suppose to update the text/input boxes contents, but I digress) so giving focus back to another text box is no solution, focus has to go to an inanimate object or a button, anything but the same or different text box.
Thanks for any suggestions on this matter in advance.
Hello all, I have 2 code scripts, one is the main or calling script and the other is the called script. I have coded the main calling script to run the second script when a user clicks a text/input box field. Like this...
if a_dlg_button = "txtCity_setfocus" then
a_dlg_button=""
script_play_local("CodeCityQry")
'
'I need something here to change the focus away from
'txtCity object to the "&Exit" button
'
'this next line doesn't work yet, I'll ask about this
'Global collection problem later!
'
' txtCity.object=QueryCollection.get("CT")
' a_dlg_button=""
end if
The second script fires ok and when it closes and returns
to the main script, IT AUTOMATICALLY FIRES THE SECOND SCRIPT AGAIN, in a mad loop as txtCity again receives focus!!!!!!!!
What I need to do in the above If statement is to give focus to a button object or anything for that matter to stop this run time looping.
if the button I'm, trying to give focus to is "&Exit" what is the code to give this button focus?
The main calling program is intended to be a series of text/input boxes that are clicked to generate a new dialog to facilitate the input of these text boxes.(You will not be allowed to modify the contents of the text boxes directly from the main calling code, but only through the called code/script which is suppose to update the text/input boxes contents, but I digress) so giving focus back to another text box is no solution, focus has to go to an inanimate object or a button, anything but the same or different text box.
Thanks for any suggestions on this matter in advance.
Comment