Skip to main content
Hi everybody,

 

 

I am trying to copy a MACRO into another MACRO within a fmf file.

 

 

Maybe its the best to show you guys the code of the fmf file: 
 DEFAULT_MACRO VAR1 "something" DEFAULT_MARCO VAR2 "anything" // ... some (uninteresting) code ... DEFAULT_VALUE VAR1 "$(VAR1)" DEFAULT_VALUE VAR2 "$(VAR2)" // ... some (uninteresting) code ... INCLUDE \ )		\ 	set logger Âopen c:/log.txt w+];	\ 	puts "MACRO VAR2 VAR1";	\ 	puts $logger $(VAR1);\ 	puts $logger $(VAR2);\	 ]
 

 

So, I want to copy the content of VAR1 into VAR2 (important line: puts "MACRO ...";). The expected result of log.txt is therefore: 
 something something
 However, it is always 
 something anything
 I tried many varieties for this code, experimented with the syntax and so on.

 

But nothing works so far.

 

 

How can I copy the values?

 

 

Thank you very much

 

ben

I'm no expert in this field, but I do notice a typo in the example above. It says "DEFAULT_MARCO VAR2". But that probably doesn't help you...


I'm no expert in this field, but I do notice a typo in the example above. It says "DEFAULT_MARCO VAR2". But that probably doesn't help you...

Hi,

thank you for your answer! You are right, unfortunately that is not the problem 😉 However, I solved this by implementing the copy procedure within my reader directly and not within the fmf file.


Hi,

thank you for your answer! You are right, unfortunately that is not the problem 😉 However, I solved this by implementing the copy procedure within my reader directly and not within the fmf file.

That probably is a safer way, yes :)

 

Good to hear that it's solved!

Reply