how retain value of variable in memory between calls to the function?
4 views (last 30 days)
I am doing sorting every time when function called it should retain its value not like once function job over value of variable gets earsed.SO can you tell how to define that?Is any varible type is there or any other solution?
Les Beckham on 8 Oct 2016
I think what you need is to define the variable(s) that need to be retained as 'persistent' inside your function. Check the docs.