Hi,
In my main prg, I declare buildate as memvar, and as public.
In a function, I have something like this line :
result=iif(buildate != NIL," Compilation : "+buildate+chr(10),"")
It works fine if the variable is defined as public. but I want, if the
variable isn't declared, to affect "" to result and continue without crash.
Is-it possible using this, and how ?
#xcommand TRY => s_bError := errorBlock( {|oErr| break(
oErr ) } ) ;;
BEGIN SEQUENCE
#xcommand CATCH [<!oErr!>] => errorBlock( s_bError ) ;;
RECOVER [USING <oErr>] <-oErr-> ;;
errorBlock( s_bError )
#command FINALLY => ALWAYS
Thanks
A+
--
------------------------------------------------------------------------
*Alain Aupeix*
Sites web : JujuLand <
http://jujuland.pagesperso-orange.fr/> |
Pissobi-Lacassagne <
http://pissobi-lacassagne.pagesperso-orange.fr/> |
Gadel <
https://www.gadel-environnement.org/>
------------------------------------------------------------------------
X.ubuntu 16.04 | H.arbour 3.2.0-1 (r2023-12-07 19:00) | Hw.gui 2.23-5dev
(r3405) | G.ramps 5.1.2
------------------------------------------------------------------------