Hi all,
I am using STATA version 15.1
I'm writing a function that has two arguments: a local and an integer
I expect to see, in order, something like:
But instead, I see:
I'm still trying to wrap my head around local behavior.
Thanks in advance.
I am using STATA version 15.1
I'm writing a function that has two arguments: a local and an integer
Code:
capture program drop mytest
program define mytest
args v_list max_loc
di "`v_list'"
di "`max_loc'"
tokenize `v_list'
di "`1'"
end
local vlist = `""one two three" "four five six""'
mytest v_list = `vlist' max_loc = 7
Code:
one two threefour five six 7 one two three
Code:
v_list v_list
Thanks in advance.

Comment