Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.pascal.borland    |    Borland Pascal was actually pretty neat    |    2,978 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,018 of 2,978    |
|    Marco van de Voort to All    |
|    Re: Variables    |
|    20 Jan 06 18:09:59    |
   
   From: marcov@stack.nl   
      
   On 2006-01-20, Michael Sørensen wrote:   
   >   
   > But I need some more informations.   
   >   
   > I make an example: ;o)   
   >   
      
    Var:   
    SubResult: integer;   
      
   > Procedure subCalculate;   
      
   > Begin   
   > some code which ends with   
   > SubResult:= xxx (a number)   
   > End;   
   >   
   > Procedure Calculate;   
   > Var   
   > Result:: integer;   
   > Begin   
   > In this procedure i want to use the variable "SubResult" fron the procedure   
   > subCalculate like this.   
   > Result:= SubResult + 1;   
   > End;   
      
   Now subresult doesn't "belong" to a procedure anymore, but is for the whole   
   .pas file (main program or unit)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca