Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

textbox value with onKeyUp event

Status
Not open for further replies.

bobetko

Programmer
Jan 14, 2003
155
US
I am trying to get a value of a textbox (before textbox is actually updated) using OnKeyUp event.

Here is example

Let's say textbox had initial value: 123
Then I click into the textbox and I would continue typing 4567.

If I would print textbox value (using OnKeyUp) at this point it would have old value 123 because cursor is still in textbox and textbox is not updated.

So question is how can I see what is the real content of my textbox? (without cursor leaving textbox)....

eh... hard to explain....

Thanks....
 
The .text property should give you the current, typed content. Is that what you mean?
 
. . . or if textbox is bound try the [blue]OldValue[/blue] property:
Code:
[blue]   Me!TextboxName.OldValue[/blue]

Calvin.gif
See Ya! . . . . . .
 
Hm, I could swear I tried .text property and I was getting some error. But, now, it's workin fine....

Thanks.

.Value property is doing what I explain earlier.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top