Deutsch English
Alphabetical index
Array functions
CGI functions
Data types
Date functions
Fulltext functions
Language elements
Numerical functions
Other functions
Ramtext functions
  • loadtemplate()
  • ramtext()
  • ramtext_copy()
  • ramtext_delete()
  • ramtext_find()
  • ramtext_insert()
  • ramtext_name()
  • ramtext_part()
  • ramtext_paste()
  • ramtext_subst()
  • subst()
    Socket functions
    Statistical functions
    Stream functions
    String functions
    System functions
    Table functions
    Text functions
    Home    Overview    Search    Impressum    Contact    Members
    Topic complex Ramtext functions
    Function ramtext_subst()
    Short Replaces a string in a ramtext by another
    Syntax RAMTEXT_SUBST(ramtext : STRING; target : STRING; substitution [; mode] : INTEGER) : INTEGER
    Parameter ramtext : name of ramtext in that form "ramtext:..."
    target : any string
    Here are the following posibilities:
    there are the following special cases:
    "extern:path" target replaced by an external file
    "ramtext:..." target is replaced by corresponding ramtext, otherwise target is replaced by the string expression.
    field access, that consists again of
    table handle, field number or
    table handle, field identifier

    mode : 0 (default) simple substitution
    1 HTML-substitution (only special chars)
    2 ANSI-substitution
    4 word wraps are added with

    8 ExtNote is deleted after first use
    16 external text is in ASCII format
    32 Only body part is read (only in conjunction with external html texts)
    Return 0 Target not found
    1 Target found
    See also:
    loadtemplate() cgiwritetemplate()
    Description SUBST replaces principally only the first appearance of the targets. All targets can be replaced the following way:


    User comments:
    Write a comment:
    Text (Switch mode)

    Choose between
    the normal and the
    advanced editor.
    The advanced editor
    runs in IE 5+ and
    Mozilla 1.4+ only
    SPAM-Protection Please enter tdbengine in this field.

    tdbengine chat

       Copyright © 2003-2004 tdb Software Service GmbH
       Alle rechte vorbehalten. / All rights reserved
       Last changed: 21.10.2004
    {Fehler für :execmacro{execmacro="sessionspy"}