QB64 Phoenix Edition
Remove Spaces (or other characters) from a String - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3)
+---- Forum: Utilities (https://staging.qb64phoenix.com/forumdisplay.php?fid=8)
+---- Thread: Remove Spaces (or other characters) from a String (/showthread.php?tid=1340)

Pages: 1 2


RE: Remove Spaces (or other characters) from a String - euklides - 12-31-2022

In a simple way:


Code: (Select All)
Check$ = "This is a string that we're going to check to see how long it would take to remove the spaces from."
Check1$ = "": For x = 1 To Len(Check$): If Mid$(Check$, x, 1) <> " " Then Check1$ = Check1$ + Mid$(Check$, x, 1):
Next x: Check$ = Check1$: Print Check$: Sleep