Book a Demo

Author Topic: template functions  (Read 3532 times)

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
template functions
« on: December 09, 2004, 12:10:54 am »
is there a way I can create my won template functions?
I tryed creating it through new templates.
but if I use ,for example, REPLACE twice on the same string to make changes the out put get prinnted twice.

a waor arround would be if I could define when the macro is for output and when for use.

thanks
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: template functions
« Reply #1 on: December 09, 2004, 12:18:27 am »
I think I found a way for the workarrond, but i'd still rather to be able to make new template function (maybe as macros).
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: template functions
« Reply #2 on: December 09, 2004, 01:05:57 pm »
Try assigning the result of the REPLACE function to a variable.  It doesn't modify the string it is passed, instead it returns the result.  If you're not assigning to a variable this will mean that it gets printed.

Simon

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: template functions
« Reply #3 on: December 18, 2004, 10:33:37 pm »
that's what I found and it works fine.
Recursion definition:
If you don’t understand the definition read "Recursion definition".