Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Backslash versus foreslash
#3
It won't change it inside your code automatically, but most of the file commands will work with it either way for you.  Where you'd have to be careful is with SHELL and such.  SHELL "./foo \e /a"  <-- is \e a path?  or /a?  Or both params of foo?  Who knows!!  So, QB64 won't mess with those for you, so you'll have to have your slashes right then, for your programs.

As for _LOADIMAGE though?  I *think* it doesn't really matter, as QB64 will swap those slashes to what's proper, before loading the file for you.  (I say I *think*, because QB64 has a dozen different load routines inside it for files, includes, fonts, sounds, ect, ect.  There's always an off chance that some of those missed out on the internal swapping of slashes.)

If you can test it, and it works, all is fine.  If you can't test it for yourself, and are in doubt of the behavior, swap them out manually.  Better to play it safe than sorry, in my opinion.  Smile
Reply


Messages In This Thread
Backslash versus foreslash - by TerryRitchie - 01-10-2023, 05:40 PM
RE: Backslash versus foreslash - by SMcNeill - 01-10-2023, 06:21 PM
RE: Backslash versus foreslash - by mnrvovrfc - 01-10-2023, 06:34 PM
RE: Backslash versus foreslash - by Fifi - 01-11-2023, 05:20 AM
RE: Backslash versus foreslash - by SMcNeill - 01-10-2023, 06:43 PM
RE: Backslash versus foreslash - by TerryRitchie - 01-10-2023, 06:50 PM
RE: Backslash versus foreslash - by SMcNeill - 01-10-2023, 06:54 PM
RE: Backslash versus foreslash - by TerryRitchie - 01-10-2023, 07:17 PM
RE: Backslash versus foreslash - by mdijkens - 01-11-2023, 08:24 AM
RE: Backslash versus foreslash - by DSMan195276 - 01-11-2023, 09:38 PM
RE: Backslash versus foreslash - by DSMan195276 - 01-11-2023, 10:15 PM
RE: Backslash versus foreslash - by mnrvovrfc - 01-12-2023, 02:12 AM
RE: Backslash versus foreslash - by TerryRitchie - 01-12-2023, 05:16 AM
RE: Backslash versus foreslash - by Fifi - 01-14-2023, 07:59 AM
RE: Backslash versus foreslash - by TerryRitchie - 01-16-2023, 03:53 AM



Users browsing this thread: 3 Guest(s)