|
of_dwitemstatus
|
|
Full name
|
pfc_n_cst_conversion.of_dwitemstatus
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_dwitemstatus(string,ref dwitemstatus)
|
public function integer of_dwitemstatus (string as_status, ref dwitemstatus ae_dwitemstatus);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_dwItemStatus
//
// Access: public
//
// Arguments:
// as_status The string value to be converted to dwItemStatus data type value
// ae_dwItemStatus A dwItemStatus variable passed by reference which will hold the
// dwItemStatus value that the string value was converted to
//
// Returns: integer
// 1 if a successful conversion was made.
// If as_status value is Invalid, function returns -1.
//
// Description: Converts a string value to a dwItemStatus data type value.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
//Convert to lowercase
as_status = Lower (as_status)
//Check parameters
If IsNull(as_status) Then
Return -1
End If
CHOOSE CASE as_status
CASE "notmodified", "notmodified!"
ae_dwItemStatus = NotModified!
Return 1
CASE "datamodified", "datamodified!"
ae_dwItemStatus = DataModified!
Return 1
CASE "new", "new!"
ae_dwItemStatus = New!
Return 1
CASE "newmodified", "newmodified!"
ae_dwItemStatus = NewModified!
Return 1
END CHOOSE
//Invalid parameter.
Return -1
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.lower |
systemfunctions
|