Hi
It seems like st_local does not work inside a function as the example below shows:
Or am I missing something? (Seen before)
It seems like st_local does not work inside a function as the example below shows:
Code:
. mata: : mata clear : txt = "st_local works outside" : st_local("local_outside", txt) : : function test(txt) > { > txt = "st_local do not work inside" > st_local("local_inside", txt) > } : st_dir("local", "macro", "*") local_outside : end . display "`local_outside'|`local_inside'" st_local works outside|
Comment