Level 2 check

Anything QL Software or Programming Related.
Post Reply
User avatar
dden
ROM Dongle
Posts: 43
Joined: Thu Jan 19, 2017 8:56 am

Level 2 check

Post by dden »

Anyone know if it's possible to test for whether the system a program is running on supports level 2 directories?

I'm sure I've read the answer somewhere before but can't for the life of me remember where.


David
User avatar
NormanDunbar
Forum Moderator
Posts: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Level 2 check

Post by NormanDunbar »

Head over to Dilwyn's web site and download DJToolkit. It has a function called, level2, which does exactly what you want.

HTH

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
dden
ROM Dongle
Posts: 43
Joined: Thu Jan 19, 2017 8:56 am

Re: Level 2 check

Post by dden »

NormanDunbar wrote:Head over to Dilwyn's web site and download DJToolkit. It has a function called, level2, which does exactly what you want.

HTH

Cheers,
Norm.
Many thanks.


David
User avatar
NormanDunbar
Forum Moderator
Posts: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Level 2 check

Post by NormanDunbar »

Sorry, forgot the link http://www.dilwyn.me.uk/tk/djtk.zip and the keyword you want is at https://superbasic-manual.readthedocs.i ... evel2.html.


Cheers.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
dilwyn
Mr QL
Posts: 2753
Joined: Wed Dec 01, 2010 10:39 pm

Re: Level 2 check

Post by dilwyn »

You could probably test for the presence of the MAKE_DIR extension, but I seem to recall that QemuLator can't create directories in QXL.WINs for example.

A while back I lifted the code for the LEVEL2 extension out of Norman Dunbar's DJToolkit and made a stand-alone extension function out of it, called LEVEL2% to avoid a clash of names with Norman's extension.

I'll upload it to my site in a minute in case others can make use of it, meanwhile here's a copy to test if it does what you want. Hope you don't mind, Norman?
level2.zip


User avatar
dden
ROM Dongle
Posts: 43
Joined: Thu Jan 19, 2017 8:56 am

Re: Level 2 check

Post by dden »

Thank you Dilwyn.


David
User avatar
NormanDunbar
Forum Moderator
Posts: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Level 2 check

Post by NormanDunbar »

Evening Dilwyn,

everything I do these days is open source. Help yourself, I'm pleased that my code is of use.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Post Reply