[Gambas-user] ERROR Class
Benoit Minisini
gambas at ...1...
Tue Mar 18 17:12:29 CET 2008
On mardi 18 mars 2008, David Villalobos Cambronero wrote:
> Hi all,
> If I do:
>
> DIM hProceso AS Process
>
> hProceso = SHELL "dir /home/david" FOR READ 'Lets supposed the process
> fails
>
> IF ERROR THEN Message("The process has crashed!!!")
>
> Will it work? Or ERROR is just ti be used after TRY?
>
> Regards
>
> David
>
You should use ERROR only after TRY, because the behaviour of ERROR has
changed in Gambas 3. And a crashed program is not an error. :-)
You must read the Process.State property to know what happened.
Regards,
--
Benoit Minisini
More information about the User
mailing list