Delete
Previous  Top  Next

Prototype

Delete(strDest,intPos,intChars)

Description

It deletes some characters from a string, from the shown position.

Parameters

StrDest:
destination string.

IntPos :
original position

IntChars
: characters number to be deleted.

Returned value

None.

Notes

The first letter in position 1.

Example

//It transforms the data field by deleting the symbol '/' (01/12/98->011298)
While Pos('/',FieldDate)>0 do Delete(FieldDate,Pos('/',FieldDate),1);

// It transforms the data field by deleting the symbol '\'(13\01\99->130199)
While Pos('\',FieldDate)>0 do Delete(FieldDate,Pos('\',FieldDate),1);

// It transforms the data field by deleting the symbol '-'(25-10-99->251099)
While Pos('-',FieldDate)>0 do Delete(FieldDate,Pos('-',FieldDate),1);