Kill Spaces function by Proteus 193513th Oct 2003 11:02
|
---|
Summary Removes spaces from a given string Description It can be modified to kill(remove) any given character Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com function killsps(st$) sl = len(st$) for t = 0 to sl-1 st$ = right$(st$,sl-t) temp$ = left$(st$,1) if temp$ <> " " then final$ = final$ + temp$ :rem the " " indicates that space should be killed next t endfunction final$ |