|
of_lastpos
|
|
Full name
|
pfc_n_cst_string.of_lastpos
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_lastpos(string,string)
|
Name
|
Datatype
|
ll_null
|
Long
|
public function long of_lastpos (string as_source, string as_target);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_LastPos
//
// Access: public
//
// Arguments:
// as_Source The string being searched.
// as_Target The string being searched for.
//
// Returns: Long
// The position of as_Target.
// If as_Target is not found, function returns a 0.
// If any argument's value is NULL, function returns NULL.
//
// Description: Search backwards through a string to find the last occurrence of another string
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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.
//
//////////////////////////////////////////////////////////////////////////////
//Check for Null Parameters.
IF IsNull(as_source) or IsNull(as_target) Then
Long ll_null
SetNull(ll_null)
Return ll_null
End If
//Set the starting position and perform the search
Return of_LastPos (as_source, as_target, Len(as_Source))
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.len |
systemfunctions
|
systemfunctions.setnull |
systemfunctions
|
pfc_n_cst_string.of_lastpos |
pfc_n_cst_string
|