Skip to content

PseudoLocal

Nonki Takahashi edited this page Apr 24, 2017 · 2 revisions

Pseudo Local

Save variables for local use in subroutines like following manner.

Sub Factorial
  ' param n
  ' return f
  Stack.PushValue("local", i)
  f = 1
  For i = 1 To n
    f = f * i
  EndFor
  i = Stack.PopValue("local")
EndSub
Clone this wiki locally