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_insert()
    Short Inserts a string to a ramtext
    Syntax ramtext_insert(ramtext : STRING; startpos : INTEGER; target : STRING) : INTEGER
    Parameter ramtext : name of ramtext in the form "ramtext:..."
    startpos: position of the character, where the string should be inserted
    target : the string that is to insert
    Return number of the characters that are displaced by the insertion
    See also:
    ramtext_find() ramtext_part() ramtext_delete()
    Description This function inserts a string at the position startpos.

    The return value is rather of academic interest, because it is the number of replaced characters (filesize-startpos).
    0 is returned, if the string could not inserted because

    * startpos had the value 0
    * startpos was bigger than the actual filesize+1
    * the insertion lead to a filesize greater than 64 KB at present.

    According to that startpos can get the values between 1 (insertion at the beginning) and getsize(ramtext)+1 (insertion at the end).

    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"}