1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br
rafael.andrade

TRY...CATCH - 2 TIPOS

TRY, CATCH

  1. rafael.andrade
    TRY...CATCH CLÁSSICO:
    Código:
    DEF VAR numero AS INTEGER INIT 1 NO-UNDO.
    DEF VAR xi AS INTEGER.
    
    DO ON ERROR UNDO, LEAVE:
    
       numero = INTEGER("a").
       /* Só exibe abaixo se não ocorrer erro acima */
       MESSAGE "Sucesso de conversão!"...
    You do not have permission to view the full content of this resource.