Remove and Replace value in an edit box if a key is pressed (OpenInsight Specific)
At 23 OCT 2001 02:24:50PM Leon Shaffer wrote:
I realize this should be simple to do, but I have reveiwed the help manual and called RT for help, but still to no avail.
What I am trying to do is when the user gets to a position on the window, lets say it is the field called Debit, which is numeric only, then if the user presses any key to change the data, then I want to "wipe out" the existing data that is currently there, and keep the data the user enters.
Any help is appreciated….
At 23 OCT 2001 02:46PM Jonathan Bird wrote:
Use this code on the GOTFOCUS event of the control:
*
val=set_property(CtrlEntId,'SELECTION',1 :@FM: 65534)
RETURN 0
JB
At 23 OCT 2001 03:34PM leonshaf wrote:
Thanks JB…It works like a champ. When I called RT, and asked them the question, they responded with something close to your code, but
they said it was a selection property, and I said it should be a set_property, anyway..they could not answer, so again Thanks…
At 23 OCT 2001 04:20PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Slight proviso - this might stop any default from working unless you Return 1.
World Leaders in all things RevSoft