Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRY.. ENDTRY EXIT clause name is a good choice ?
Message
From
20/09/2003 11:51:04
 
 
To
20/09/2003 11:37:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00830864
Message ID:
00830870
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform