Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_OS$ Very interesting, but...
#3
I think I get it now. So this keyword is for non-compiled code, meaning if I post code here that could be compiled by by a Linux user (All compatible keywords) when that person compiled it, their _OS$ would show they compiled it on a Linux system and as it runs, if we encounter a situation when it needs to read a directory, it will branch to the Linux format with forward slashes, rather than the Windows one, which is the only OS that uses back slashes.

Code: (Select All)
IF INSTR(_OS$, "[WINDOWS]") THEN slash$ = "\" else slash$="/"

If I missed something, let me know. If not, thanks for the explanation.

Pete

Old dogs can learn new tricks, but if helps if the neighbor locks up her poodle.
Reply


Messages In This Thread
_OS$ Very interesting, but... - by Pete - 12-16-2022, 04:57 PM
RE: _OS$ Very interesting, but... - by SMcNeill - 12-16-2022, 05:59 PM
RE: _OS$ Very interesting, but... - by Pete - 12-16-2022, 07:27 PM
RE: _OS$ Very interesting, but... - by SMcNeill - 12-16-2022, 07:41 PM
RE: _OS$ Very interesting, but... - by Pete - 12-16-2022, 07:52 PM



Users browsing this thread: 1 Guest(s)