...but moves the cursor down to the next field
Which is the name of that field ?
( I suspect that you have two occurrence of the same field )
I have 3 fields on top of each other in one line. Gsearchall, gsearchcompany, gsearchperson. If I use basically the same script for each field then what seems to happen is that the script always puts the cursor in the next search all field. From all to company. From company to person. From person back to all. Wierd. I don't see way but maybe I'm over looking something elementary.
If I use basically the same script for each field ...
Are you ?
In other words, is the script you posted the REAL script ?
What do you mean by real? I think the answer is yes. When I say basically, I mean it's the same but obviously the fields used have been changed accordingly.
I'll rephrase myself...
Your script can be stripped to:
If (0) - Set error capture (on) - Enter find mode - set field (contacts::search all; contacts::gsearchall) - Perform find - If (1) - clear (select; contacts::gsearchall)) - go to layout (list view (contacts)) - Else - Show custom dialog - End if End if
clear (select; contacts::gsearchall)
go to field (contacts::gsearchall)
So, if this is the REAL script, the cursor MUST end into gsearchall
Unless the layout is corrupted. I've seen a corrupted layout that consistantly placed the cursor in the wrong field after a go to field step attempted to place the cursor in a different field. Weird but true. I ended up rebuilding the layout. Then the original script worked as I needed it to.
No, I need all of the script but eventually I need it stay in the search field if no results are found so the person can do a new search straight away. But it is indeed only the last line that's not working. It clears the field and then instead of staying in it, it jumps to the next field.
Lord...does that mean that the script looks fine but the layout is corrupted? I can rebuild this layout...