Recent

Author Topic: How to use Param macro (code templates)  (Read 5253 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
How to use Param macro (code templates)
« on: August 19, 2009, 07:48:07 am »
Can anyone give an example of Param macro usage in a template definition? The wiki has an example, but it doesn't show the definition.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12193
  • Debugger - SynEdit - and more
    • wiki
Re: How to use Param macro (code templates)
« Reply #1 on: August 19, 2009, 02:49:23 pm »
$param(variable) := $param(typename).Create;
try
  |
finally
  $param(variable,sync=1).Free;
end;


The IDE contains this updated macro, but unfortunately if you ever added/edited one of the macros in the IDE, it has saved all of them at this state, and will not update them. (unless you delete the config file)

 

TinyPortal © 2005-2018