assigning new numbers to same variables? 
Author Message
 assigning new numbers to same variables?

is there a way to use maybe the SIGNAL command to start over at a
specific spot and have new numbers assigned to variables? if not that
way, is there any other way?
Thanks,
RyanK



Wed, 26 Apr 2000 03:00:00 GMT  
 assigning new numbers to same variables?

Quote:

> is there a way to use maybe the SIGNAL command to start over at a
> specific spot and have new numbers assigned to variables? if not that
> way, is there any other way?
> Thanks,
> RyanK

There is ALWAYS a better way to control the logic flow in your program
than using "SIGNAL label".  Look to "DO" loops first.  Not knowing what
you are trying to accomplish, it is hard to give more specific advice.


Wed, 26 Apr 2000 03:00:00 GMT  
 assigning new numbers to same variables?


Quote:
>is there a way to use maybe the SIGNAL command to start over at a
>specific spot and have new numbers assigned to variables? if not that
>way, is there any other way?
>Thanks,
>RyanK

Are you talking about something like:

start:
x=2
y=3

dosomething:
if x=2 do
        signal start
end

j.

J. Pedone

http://www.flash.net/~jpedone

Windows is made by MicroSOFT, not MicroGOOD, MicroRIGHT, or MicroFAST.
BASIC is to computer programming as QWERTY is to typing.  - Seymour Papert



Thu, 27 Apr 2000 03:00:00 GMT  
 assigning new numbers to same variables?

% is there a way to use maybe the SIGNAL command to start over at a
% specific spot and have new numbers assigned to variables? if not that
% way, is there any other way?

Write a subroutine.

say '2 times 3 is' times(2,3)
say '3 times 4 is' times(3,4)
say '12.2342 times 2346721.123432 is' times(12.2342,2346721.123432)

exit 0

times:
  parse arg x, y
  return x*y
--

Patrick TJ McPhee
East York  Canada



Thu, 27 Apr 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Assigning a number string to a character variable

2. Assigning a random number as a variable

3. Assigning numbers to a matrix

4. How to assign orderline numbers?

5. Unique Number Assign

6. Assigning pin-numbers in Altera Maxplus

7. Assigning Logical File Numbers.

8. Assigning files to unit numbers on SGI

9. g77: assigning file names to preconnected unit numbers

10. assign regexp to variable?

11. Awk: assigning a variable

12. how to assign null value to variable.

 

 
Powered by phpBB® Forum Software