how to write a static variable inside the procedure? consider the following code, every time i call this procedure it will redeclare the variable x that's what i dont want to. i want the variable to be declare at the first call and keeping value after the rest of the calls.
x : integer;
inc(x) //x will be the same value every time get call. i want x to be increase every call.