Skip to main content
Question

Copy macros in fmf file

  • October 22, 2015
  • 3 replies
  • 11 views

Forum|alt.badge.img
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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

geosander
Forum|alt.badge.img+7
  • November 19, 2015

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...


Forum|alt.badge.img
  • Author
  • November 23, 2015

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.


geosander
Forum|alt.badge.img+7
  • November 23, 2015

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!