Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HOW TO reference a function name with variables?
#4
Gintaras,

Been trying to think through your reply. I JUST WANT TO BE SURE that we are on the same page.

I have a macro that has 15 functions that I want to create an 'exe' from (it may actually have 75 or more functions.)

I want to create a copy the above macro and all functions and make a new macro via 'exe'

THE ONLY DIFFERENCE is that the function names will have a different 'ID#" extension

Example
ParentMacroName_01
function1_01
function2_01
... (all the way to)
function15_01

THEN WHEN I COPY or create a new macro to exe, it becomes

ParentMacroName_02
function1_02
function2_02
... (all the way to)
function15_02


The parent macro, will get the ID, the '01' or '02' in each case from an 'ini' file.

Obviously the new macro will be looking for the old ID such as 'function15_01' but it is now named 'function15_02'

I don't want to have to manually change this ID, since some macros actually have 75 functions w. the new ID.

SO, I would like to have the ID be instantiated via a variable, that it gets from an 'ini-file'.

SO, are you saying that you still think that a 'single function with parameters' is the best way to do this?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)