|
of_lefttrim
|
|
Full name
|
pfc_n_cst_string.of_lefttrim
|
Access
|
public
|
Extend of
|
string
|
Return value
|
string
|
Prototype
|
public function string of_lefttrim(string,boolean)
|
Name
|
Datatype
|
ls_null
|
string
|
public function string of_lefttrim (string as_source, boolean ab_remove_spaces);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_LeftTrim
//
// Access: public
//
// Arguments:
// as_source The string to be trimmed.
// ab_remove_spaces A boolean stating if spaces should be removed.
//
// Returns: string
// as_source with all desired characters removed from the left end
// of the string.
// If any argument's value is NULL, function returns NULL.
//
// Description: Removes desired characters from the left end of a string.
// The options depending on the parameters are:
// Remove spaces from the beginning of a string.
// Remove nonprintable characters from the beginning of a string.
// Remove spaces and nonprintable characters from the
// beginning of a 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 parameters
If IsNull(as_source) or IsNull(ab_remove_spaces) Then
string ls_null
SetNull(ls_null)
Return ls_null
End If
// Remove spaces=ab_remove_spaces, NonPrintCharacters=False
return of_LeftTrim (as_source, ab_remove_spaces, False)
end function