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!

Validation Expression

Status
Not open for further replies.

pgaec

Programmer
Aug 4, 2003
161
AU
For example, if I have the following validation expression on a datawindow column "1=2", when I insert a new row into the datawindow control, this validation is fired only when i enter some values in the datawindow column. Say, if i add a new column without entering any values in the datawindow column - it validates. I want to validate the column in a new row irrespective of whether it is changed or not.

Any suggestions?
 
Manually triggering System-events is a bad practice. However,
for your situation, if you are desparate, try:

///////////////////////////////////////////////////////////
dwObject ldwo
//
ldwo = dw.Object.<Column>
//
dw.Event ItemChanged( dw.GetRow(), ldwo, <initial-value> )

///////////////////////////////////////////////////////////

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top