REMAIN$ function

Purpose: If Match$ is found in MainStr$, REMAIN$ gets all characters in MainStr$ from the end of Match$. REMAIN$ complements the EXTRACT$ function


 Syntax:

 RetStr$ = REMAIN$(MainStr$, Match$)

 Parameters:

  • RetStr$ Returned portion of MainStr$ string. REMAIN$ returns MainStr$ when a match is not found.
  • MainStr$ String which is to be searched and parsed.
  • Match$ SubString to be located in MainStr$.

Example:


 RetStr$ = REMAIN$("Filename.bas", "name")

Result:

RetStr$ equals ".bas"