The following sample doesn't trap the error:

#xcommand TRY              => BEGIN SEQUENCE
#xcommand CATCH [<!oErr!>] => RECOVER [USING <oErr>] <-oErr->
#xcommand FINALLY          => ALWAYS


FUNCTION MAIN()

   LOCAL n := "Test"

   TRY
       n++
   CATCH
   END

   ? n

   RETURN NIL

What are the correct commands definitions to mimic xHarbour's TRY/CATCH/END?

EMG

--
EMAG Software Homepage:     http://www.emagsoftware.it
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
The EMG Music page: http://www.emagsoftware.it/emgmusic
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to