Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRY.. ENDTRY EXIT clause name is a good choice ?
Message
De
20/09/2003 11:57:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
20/09/2003 11:51:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00830864
Message ID:
00830871
Vues:
17
>Hi Cetin,
>
>the program make which the VFPT has decided to make.
>
>my problem is VFPT design choice.
>
>I want this command syntax:
>
>TRY
>     [ tryCommands ]
>[ CATCH [ TO VarName ] [ WHEN lExpression ]
>     [ catchCommands ] ]
>[ THROW [ eUserExpression ] ]
>[ EXITBLOCK ]
>[ FINALLY
>     [ finallyCommands ] ]
>ENDTRY
>
>
>and this operation:
>
>CLEAR
>TRY
> DO WHILE .T.
>  EXITBLOCK  &&<-- now VFP go to FINALLY
> ENDDO
> ? 'try'
> THROW
>CATCH
> ? 'catched'
>FINALLY
> ? 'finemessaggio'
>ENDTRY
>*** output that i want
>finemessaggio
>
>
>with this VFP 8.0 to do this i need to write
>
>CLEAR
>TRY
> LOCAL exitTry
> DO WHILE .T.
>  exitTry = .T.
> ENDDO
> IF m.exitTry
>   EXIT        &&<-- now VFP go to FINALLY
> ENDIF
> ? 'try'
> THROW
>CATCH
> ? 'catched'
>FINALLY
> ? 'finemessaggio'
>ENDTRY
>
>Fabio

Hmm maybe VFPT could make it for you. Then I'd ask them to do this for me too :
for ix=1 to 100
  for jx=1 to 100
    for kx=1 to 100
      for px=1 to 100
         exit 2 && Exit or Exit 0 exits this block
      endfor
    endfor
  endfor
  * I want to be here
endfor  
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform