Is there a way of making something like the code below work?
Code: Select all
for %proc proc1 proc2 proc3 proc4
call myprocedure_{%proc}
next
subroutine myprocedure_proc1
...
endsub
subroutine myprocedure_proc2
...
endsub
etc.
Javier
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Code: Select all
for %proc proc1 proc2 proc3 proc4
call myprocedure_{%proc}
next
subroutine myprocedure_proc1
...
endsub
subroutine myprocedure_proc2
...
endsub
etc.
Code: Select all
for %proc proc1 proc2 proc3 proc4
%sub = "myprocedure_"+%proc
call {%sub}
...
nextCode: Select all
for !i=1 to 4
%sub = "myprocedure_proc"+@str(!i)
call {%sub}
...
nextUsers browsing this forum: No registered users and 2 guests