Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
control characters in Change dialog box
#8
Code: (Select All)
Open "program_name.bas" For Binary As #1
Open "expanded_program_name.bas" For Output As #2
Do Until EOF(1)
    Line Input #1, temp$
    While InStr(temp$, ":")
        o$ = Left$(temp$, InStr(temp$, ":") - 1)
        Print #2, o$
        temp$ = Mid$(temp$, InStr(temp$, ":") + 1)
    Wend
    Print #2, temp$
Loop
close

Wouldn't a simple translator like this work the best?  Read the file, convert the : into CRLF.

As long as there's no : in quotes, it should work without any issues.  Otherwise, you'll have to expand it to do some logic checking to see if it's in quote or not.
Reply


Messages In This Thread
RE: control characters in Change dialog box - by SMcNeill - 05-08-2024, 09:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  file.. open dialog window pmackay 2 409 08-31-2025, 11:27 PM
Last Post: pmackay
  Displaying French characters? bplus 6 1,144 05-06-2025, 06:14 PM
Last Post: Petr
  printing characters > chr$(127) madscijr 18 2,205 03-11-2025, 07:33 PM
Last Post: madscijr
  Need some help getting characters to follow each other correctly Cobalt 6 1,071 11-22-2024, 01:19 AM
Last Post: Cobalt
  Multiple Text Box Issues for a Beginner Vespin 11 1,632 10-30-2024, 05:32 PM
Last Post: Vespin

Forum Jump:


Users browsing this thread: 1 Guest(s)