User Tools

Site Tools


Table of Contents

TemplateProducer method

DK11 for Delphi | GisInternals.TemplateProducer | Enums | Fields | Methods | Types

Replace <#token#> occurrence in _text based on token list.


// Delphi
function TemplateProducer(
  const _text : String;
  const _tokenlist : TGIS_StringList;
  const _callback : TGIS_TemplateProducerCallBack;
  const _leavetoken : Boolean
) : String;
// C++ Builder
extern DELPHI_PACKAGE UnicodeString TemplateProducer(
  const UnicodeString _text,
  TGIS_StringList* const _tokenlist,
  TGIS_TemplateProducerCallBack* const _callback,
  const bool _leavetoken


Name Type Description
_text String text to be changed
_tokenlist TGIS_StringList list of tokens in a form "token=replacement"
_callback TGIS_TemplateProducerCallBack used only if _tokenlist is nil; for each token the callback will be called to resolve the value
_leavetoken Boolean If True, token marker won't be removed


Type Description
String Token value.
2017/09/04 11:15