home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4611
/
fw16d.ins
/
SOURCE
/
FUNCTION
/
LOADVAL.PRG
< prev
next >
Wrap
Text File
|
1994-02-27
|
666b
|
28 lines
//----------------------------------------------------------------------------//
function LoadValue( nId, cType, uValue )
local cString := LoadString( GetResources(), nId )
local uResult := cString
if cType != nil
cType = Upper( SubStr( cType, 1, 1 ) )
else
cType = ValType( uValue )
endif
do case
case cType == "N"
uResult = Val( cString )
case cType == "D"
uResult = CToD( cString )
case cType == "L"
uResult = ( Upper( cString ) == ".T." )
endcase
return uResult
//----------------------------------------------------------------------------//