|
of_EncodeKey
|
|
Full name
|
pfc_n_cst_lvsrv_datasource.of_EncodeKey
|
Access
|
public
|
Extend of
|
string
|
Return value
|
string
|
Prototype
|
public function string of_EncodeKey(n_ds,long)
|
Name
|
Datatype
|
ll_rowid
|
long
|
lnv_string
|
n_cst_string
|
ls_key
|
string
|
ls_pfckey
|
string
|
public function string of_EncodeKey (n_ds ads_source, long al_row);//////////////////////////////////////////////////////////////////////////////
// Public Function: of_EncodeKey
// Arguments: ads_source The DataStore with the data used to populate the item.
// al_Row The row in the DataStore for the item.
// Returns: String
// The created key if successful,
// "!" if an error occurrs.
// Description: Set the unique key of a listview item so we can find out the row
// in the datastore which created the item at a later point in time.
//////////////////////////////////////////////////////////////////////////////
// Rev. History: Version
// 6.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.
//////////////////////////////////////////////////////////////////////////////
long ll_rowid
string ls_key
string ls_pfckey
n_cst_string lnv_string
// Validate required reference.
if IsNull(ads_source) or not IsValid(ads_source) then return "!"
if IsNull(al_row) or (al_row < 1) then return "!"
// Set Data to the unique key
ll_rowid = ads_source.GetRowIDFromRow(al_Row)
if ll_rowid < 1 then return "!"
ls_pfckey = IS_PFCKEY + "="
lnv_string.of_SetKeyValue (ls_pfckey, IS_PFCKEY, String(ll_rowid), "=")
ls_key = ls_pfckey + is_delimiter
return ls_key
end function
Name
|
Owner
|
datastore.getrowidfromrow |
datastore
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|
systemfunctions.string |
systemfunctions
|
pfc_n_cst_string.of_setkeyvalue |
pfc_n_cst_string
|