Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File name verfication
#9
That should be:
Code: (Select All)
Select Case Asc(file)
  Case 132, 142, 148, 151, 153, 154
    Locate CsrLin + 2, 3
    Beep: Print "QB64 cannot read German umlauts or special characters in file names."
    Sleep 3
    System
End Select

Cannot transfer a "SELECT CASE" clause directly into an "IF" statement like that.

This was a modification to the block you presented. I noticed above the line was "Asc(file, i)" so what you're actually doing is checking only the first character of string variable "file".

It's not recommended to use strange characters in your filenames especially if it involves a program that will be shared with somebody else.
Reply


Messages In This Thread
File name verfication - by NasaCow - 03-15-2023, 04:44 AM
RE: File name verfication - by SMcNeill - 03-15-2023, 05:37 AM
RE: File name verfication - by RhoSigma - 03-15-2023, 07:39 AM
RE: File name verfication - by mnrvovrfc - 03-15-2023, 12:15 PM
RE: File name verfication - by NasaCow - 03-16-2023, 03:57 AM
RE: File name verfication - by SpriggsySpriggs - 03-16-2023, 05:08 AM
RE: File name verfication - by mnrvovrfc - 03-16-2023, 03:37 PM
RE: File name verfication - by NasaCow - 03-17-2023, 02:29 AM
RE: File name verfication - by SMcNeill - 03-17-2023, 06:11 AM
RE: File name verfication - by Kernelpanic - 03-16-2023, 05:47 PM
RE: File name verfication - by mnrvovrfc - 03-16-2023, 06:17 PM
RE: File name verfication - by SpriggsySpriggs - 03-16-2023, 09:15 PM
RE: File name verfication - by SpriggsySpriggs - 03-17-2023, 04:58 AM
RE: File name verfication - by NasaCow - 03-18-2023, 02:56 AM
RE: File name verfication - by SpriggsySpriggs - 03-18-2023, 11:55 PM



Users browsing this thread: 19 Guest(s)