[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: [sqr-users] Global Vs Local Variables Question



Hey,
I'm thinking you would use this:
 unstring $strInput by $_TAB

the $_ forces it to look for $TAB as a global
rather than local variable.

Hope this helps,
Daniel Brinkley
Techneglas, Inc.
Columbus, OH. 

>>> datta_shetty@yahoo.com 09/20/2004 2:47:59 PM >>>
Hi Everyone,
    I have a question below on which I need some insight. 

My Sample Program 
==================================================================
begin-program 
do main
end-program 

begin-procedure main
encode '<9>' into $TAB
do p1 
do p2
end-procedure 

begin-procedure p1 
  while 1 
    .. .Code here 
   do p3 ( $strLine ) 
  end-while 
end-procedure 

begin-procedure p3( $strInput ) 
    unstring $strInput by $TAB 
              $s1 
              $s2 
end-procedure

==========================================================
Question:
     I am losing the $TAB variable in procedure p3. What is correct
way
to refer to $TAB inside of p3 

Please note this is only my sample and the $TAB variable is resued in
more than one place. 

TIA 
Datta


        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org 
http://www.sqrug.org/mailman/listinfo/sqr-users

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users