CT_POSDEL

 POSDEL()
 Deletes characters at a particular position in a string
------------------------------------------------------------------------------
 Syntax

     POSDEL(<cString>,[<nStartPos>],[<nNumber>])
        --> cString

 Arguments

     <cString>  Designates the character string from which the characters
     are deleted.

     <nStartPos>  Designates from which position the deletion begins.

     <nNumber>  Designates the number of characters to delete.

 Returns

     The modified string is returned.

 Description

     This function permits the removal of <nNumber> of characters from
     <cString>, beginning from <nStartPos>.

 Note

     .  <nStartPos> is optional.  If this parameter is not specified,
        then POSDEL() begins at the end of the <cString> and deletes the
        specified number (<nNumber>) of characters.

 Examples

     .  Delete two characters from a string:

        ? POSDEL("Parameter", 3, 2)         // "Pameter"

     .  Delete the last two characters:

        ? POSDEL("Parameter", , 2)          // "Paramet"

See Also: POSINS() POSRANGE()

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.