|
pfc_validation
|
|
Full name
|
pfc_n_ds.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 DataStore.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 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 -1
// No errors found
return 1
end event