![]() |
|
#1
|
|||
|
|||
|
I'd like a subroutine/function to have memory, such that it keeps track of the number of times it has been called. The count can be passed back to the parent subroutine.
Here is roughtly what I would like to do(pseudo-code): Public Function memory() as integer count++ count = memory End Sub Sub main() current_count = memory() ; current_count = 1 current_count = memory() ; current_count = 2 current_count = memory() ; current_count = 3 End Sub Can it be done? |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Tab 'muscle memory'?
|
markg2 | Excel | 1 | 01-09-2015 09:12 AM |
Office Assistant needs more memory for gallery?
|
ScottishPolarBear | Word | 1 | 11-30-2014 11:32 AM |
| Counting unique visitors by ward, counting monthly visits by status, editing existing workbook | JaxV | Excel | 9 | 11-14-2014 12:25 AM |
| Memory Game with PowerPoint | mikeinitaly | PowerPoint | 0 | 07-29-2012 09:46 PM |
| Old Age = Loss Of Memory | oldtrout | PowerPoint | 0 | 01-02-2012 12:50 PM |