That should be:
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.
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.