|
pfc_validation
|
|
Full name
|
pfc_u_dw.pfc_validation
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_validation()
|
Name
|
Datatype
|
ib_updateonly
|
boolean
|
li_checkcolumn
|
integer
|
li_rc
|
integer
|
ll_checkrow
|
long
|
ls_checkcolname
|
string
|
event pfc_validation;//////////////////////////////////////////////////////////////////////////////
// Event: pfc_validation
// Arguments: None
// Returns: Integer
// 1 = All validation passed
// -1 = validation failed
// Description: Validate the DataWindow.
//////////////////////////////////////////////////////////////////////////////
// Rev. History Version
// 5.0 Initial version
//////////////////////////////////////////////////////////////////////////////
// Copyright © 1996-1999 Sybase, Inc. and its subsidiaries. All rights reserved. Any distribution of the
// PowerBuilder Foundation Classes (PFC) source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//////////////////////////////////////////////////////////////////////////////
integer li_checkcolumn = 1
integer li_rc
long ll_checkrow = 1
string ls_checkcolname = ""
boolean ib_updateonly = true
// Check for Missing Required Fields
li_rc = of_CheckRequired (primary!, ll_checkrow, li_checkcolumn, ls_checkcolname, ib_updateonly)
if (li_rc < 0) or (ll_checkrow > 0) then return FAILURE
return SUCCESS
end event