|
of_encodekey
|
|
Full name
|
pfc_n_cst_tvsrv_levelsource.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);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_encodekey
//
// Access: public
//
// 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 treeview item so we can find out the row
// in the datastore which created the item at a later point in time.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
long ll_rowid
string ls_key
string ls_pfckey
n_cst_string lnv_string
// Validate arguments
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
|