Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove Spaces (or other characters) from a String
#11
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
Why not yes ?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  STRING$ empowered with StringPatternFilling TempodiBasic 6 1,198 05-09-2025, 06:00 PM
Last Post: TempodiBasic
  Split String to Array Using Strtok (Attempt #2) SpriggsySpriggs 0 527 12-17-2024, 06:37 PM
Last Post: SpriggsySpriggs
  Remove Remarks for Programs Pete 17 2,912 10-27-2024, 02:22 PM
Last Post: Dimster
  Variable characters eoredson 7 1,482 10-21-2024, 02:55 AM
Last Post: eoredson
  PrintW - print a long string, breaking it at the last space or hyphen before col. 79 TDarcos 21 3,994 04-22-2024, 09:52 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)