General information
Category:
Coding, syntax & commands
>In respect to style I hate nesting ifs !!!
So do I :>)
>I would :
>
>BEGIN TRANSACTION
>llret = TABLEUPDATE(.T.,.F.,vporders)
>llret = llret AND TABLEUPDATE(.T.,.F.,vpordets)
>llret = llret AND TABLEUPDATE(.T.,.F.,styles)
>IF llret
> END TRANSACTION
>ELSE
> ROLLBACK
> THISFORM.goodsave = .F.
>ENDIF
Only one problem I see with this approach - the first 2 could fail and the last succeed. Without a lot of added checking in between, I like Frank's approach better in this case.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only