Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>posins()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
POSINS()

Syntax:     POSINS(<expC1>,<expC2>,<expN>)

Arguments:  <expC1> the character string into which to insert characters.
            <expC2> contains the characters to insert into <expC1>.
            <expN> denotes the position in which the first new character
            is to appear.

Returns:    A character string.
            The new string with the inserted characters.

Usage:      POSINS() can be  used to insert characters in an existing
            string.  The new <expC2> characters will be inserted into
            <expC1> in front of the character, at the position specified
            by <expN>.

Notes:      The resulting string will be longer than the original.  Therefore,
            this function should not be called by reference.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Inserting 123 in position 2.
            ? POSINS("abcdefgh","123",2)                && "a123bcdefgh"

            * Inserting 123 in position 8.
            ? POSINS("abcdefgh","123",8)                && "abcdefg123h"

            * Indication of an incorrect position.
            ? POSINS("abcdefgh","123",10)               && "abcdefgh"



See Also: POSDEL() POSREPL()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson