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 12:00:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
20/09/2003 11:51:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00830864
Message ID:
00830872
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform