no, using GOTO's is not a problem.

If you use a GOTO, you need to supply a label.
If you decided to reuse any of the code within the block which
   included the condition, you don't have to remember to change the
   label name to the new label, it's just simply an EXIT.

as for use of subroutines, it wasn't that I couldn't use them,
   it was I didn't want to use them (for this particular program).

This was more of visual reasoning for following logic of the
program, and ease in moving the logical chunks around in different
orders, and still be able to visually follow the logic.

It was more for making it easier on the human, rather than trying
to make it streamlined for speed. I really didn't care if the program
ran in 4.2 seconds instead of 4.8 seconds. But I did care that it was
logically programmed correctly.

> -----Original Message-----
> From: [email protected] [mailto:u2-users-
> [email protected]] On Behalf Of Jacques G.
> Sent: Friday, February 11, 2011 10:35 AM
> To: U2 Users List
> Subject: Re: [U2] Does UV have a "BLOCK" command
> 
> It sounds like you're used to using a GOTO and aren't allowed to do so
> anymore
> because of company standards
> 
> Gosub Block_code1
> Gosub Block_code2
> IF condition else
>    GOSUB BlockCode3
> END.
> 
> 
> You can put your "blocks" in a subroutine
> 
> 
> 
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to