|
constructor
|
|
Full name
|
pfc_n_cst_inifile.constructor
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event constructor()
|
Name
|
Datatype
|
lenv_obj
|
environment
|
event constructor;//////////////////////////////////////////////////////////////////////////////
//
// Event: constructor
//
// Description:
// Determine line ending characters to use based on current platform
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0.02 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.
//
//////////////////////////////////////////////////////////////////////////////
environment lenv_obj
GetEnvironment (lenv_obj)
if IsValid (lenv_obj) then
choose case lenv_obj.ostype
// Unix
case aix!, osf1!, hpux!, aix!
of_SetLineEnding ("~n")
// Mac
case macintosh!
of_SetLineEnding ("~r")
// Windows
case else
of_SetLineEnding ("~r~n")
end choose
else
of_SetLineEnding ("~r~n")
end if
end event