Level 2 check

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

Level 2 check

Postby dden » Thu Dec 20, 2018 9:41 pm

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
Aurora
Posts: 986
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Level 2 check

Postby NormanDunbar » Thu Dec 20, 2018 10:14 pm

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 - https://www.amazon.co.uk/Arduino-Softwa ... 1484257898, https://www.apress.com/gb/book/9781484257890
User avatar
dden
ROM Dongle
Posts: 37
Joined: Thu Jan 19, 2017 8:56 am

Re: Level 2 check

Postby dden » Thu Dec 20, 2018 10:17 pm

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
Aurora
Posts: 986
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Level 2 check

Postby NormanDunbar » Thu Dec 20, 2018 10:18 pm

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 - https://www.amazon.co.uk/Arduino-Softwa ... 1484257898, https://www.apress.com/gb/book/9781484257890
User avatar
dilwyn
Mr QL
Posts: 1628
Joined: Wed Dec 01, 2010 10:39 pm
Location: Wales
Contact:

Re: Level 2 check

Postby dilwyn » Thu Dec 20, 2018 10:23 pm

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
LEVEL2% extension
(3.7 KiB) Downloaded 39 times


Dilwyn
All things QL: see www.dilwyn.me.uk
User avatar
dden
ROM Dongle
Posts: 37
Joined: Thu Jan 19, 2017 8:56 am

Re: Level 2 check

Postby dden » Thu Dec 20, 2018 10:30 pm

Thank you Dilwyn.


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

Re: Level 2 check

Postby NormanDunbar » Thu Dec 20, 2018 10:36 pm

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 - https://www.amazon.co.uk/Arduino-Softwa ... 1484257898, https://www.apress.com/gb/book/9781484257890

Who is online

Users browsing this forum: No registered users and 2 guests