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:51:04
 
 
À
20/09/2003 11:37:18
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00830864
Message ID:
00830870
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform