|
of_color
|
|
Full name
|
pfc_w_statusbar.of_color
|
Access
|
protected
|
Override of
|
long
|
Return value
|
long
|
Prototype
|
protected function long of_color(string)
|
Name
|
Datatype
|
as_rgb
|
string
|
Name
|
Datatype
|
li_rgb
|
integer[3]
|
ll_cnt
|
long
|
lnv_string
|
n_cst_string
|
ls_color
|
string
|
protected function long of_color (string as_rgb);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_color
//
// Access: protected
//
// Arguments:
// as_rgb a string in the format "### ### ###"
//
// Returns: long
// the actual color
//
// Description:
// Convert the passed RGB string to a long.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
string ls_color
integer li_rgb[3]
long ll_cnt
n_cst_string lnv_string
For ll_cnt = 1 To 3
ls_color = lnv_string.of_gettoken(as_rgb,' ')
li_rgb[ll_cnt] = Integer(ls_color)
Next
Return RGB(li_rgb[1], li_rgb[2], li_rgb[3])
end function