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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to clear dddw column when data is rejected

Status
Not open for further replies.

theogary

Programmer
Mar 3, 2003
99
US
how do you clear dddw column data when the data is rejected in the itemchanged event. I have race field I validate using the itemchanged event and when I reject the data the column data is still visible until I tab off the field. I want the column cleared when the data is rejected. The user should not have to tab off the field to see the data is not really there.
 
Hi,
try this:

dw_1.AccepTtext // at the begining of then itemchange event.
 
FYI
from the Powerbuilder 10 Books Online...

"Calling AcceptText in the ItemChanged event has no effect."

Matt


"Nature forges everything on the anvil of time
 
Try setting the the value to null, for instance if your dddw data value is an integer do the following:

int li_null
SetNull(li_null)

dw_1.object.dddw_name[dw_1.getrow()] = li_null

Used this before but can't remember if it actually cleared the value while the user has not tabbed of it yet, but worth a try. Hope it helps. Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top