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 12:00:04
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:
00830872
Vues:
28
>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

BTW your last code would never go to finally.
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