DEL$ function

Purpose: This function allows the deletion of a substring from a string.


 Syntax:

 RetStr$ = DEL$(MainStr$, Position%, NumChars%)

 Parameters:

  • RetStr$ String returned from which substring has been deleted.
  • MainStr$ String from which substring is to be deleted.
  • Position% Position at which deletion will begin.
  • NumChars% Number of characters to be deleted from string.

Example:


 DIM myMainStr$
 DIM str1$

 str1$ = "ABCdefGHI"
 myMainStr$ = DEL$(str1$,4,3)
 PRINT myMainStr$
 PRINT LEN(myMainStr$)