Hace algun tiempo Przemek actualizó la instrucción BEGIN SECUENCE para que se pueda hacer algo identico al try catch, añadiéndole un ErrorBlock automático. Hasta ahora el TRY/CATCH exigÃa declarar las variables del codeblock, ahora ya no hace falta más usando el siguiente comando:
Harbour, cada dÃa mejor!
#ifndef __XHARBOUR__
#xcommand TRY => BEGIN SEQUENCE WITH {|o| break(o)}
#xcommand CATCH [<!oErr!>] => RECOVER [USING <oErr>] <-oErr->
#xcommand FINALLY => ALWAYS
#endifHarbour, cada dÃa mejor!
Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"