Hi Frank,
This should return LightSpeed correctly. Parameter e is parsed but is otherwise unused in the function.
Charles
[code=thinbasic]
'-----> frankos input--------------->
'Light_speed_in_a_vacuum_(m/sec) , "299792458"
'--------------------------------------------------
function lightspeed alias `lightspeed` () as ext external
'==================================================
dim As Long ParensPresent
ParensPresent = thinBasic_CheckOpenParens_Optional
dim as ext e,lightspeed
lightspeed = 299792458
thinBasic_parseNumber(e)
If ParensPresent Then thinBasic_CheckCloseParens_Mandatory
function = lightspeed
end function
'-----> frankos input--------------->
[/code]
Bookmarks