QLips

See all articles from Sinc-Link v9 n3
Author(s): Hugh H. Howie
Publication: Sinc-Link
Pub Details: Sinc-Link v9 n3 (Volume 9, Issue 3)
Date: May/June 1991
Pages: 7

GARBAGE: ———— GETTING RID OF IT

One night recently I had a phone call from a QL’er, and during the process of yakking, he mentioned he was having a small problem with loading some programs with long names. The problem was not so much that he could not load the program, but that he hated having to type in all those letters in front of the File Name,

I was able to tell him there was a program in the QL Library called DIR_EDIT_BAS, by Howard Clase, that would do an excellent job for him, I also said I could remember giving him that program some time back. Later that week my friend said the program was really wonderful, and had saved him a lot of time in getting rid of a lot of garbage.

I had a couple disks given to me some weeks ago but had never done much with them, as each and every title started off with ‘List1’ or ‘List2’ so that every time I started to work with them I had to type in those extra letters. Too much work. So last night I thought of trying this program on them, but the thought came to me that perhaps there could be an even easier way to my job. There is! Most of us have it right at our fingertips. —- TK2.

Section 5 of TK2 tells you how it is done. But is somewhat obscured as it is tagged on at the end of the section, tucked into half-a-dozen lines at the very end. All it says is that “Renaming is a process similar to COPYing a file” So I went after the COPY. And those extra bits tagged on at the front of a file name, can be swept away in the blink of an eye. I mean that. Very quickly. Like FAST man!

Say you have a disk on which every title starts off with “LIST1”. It will look like this:-

List1_Garbage
List1_MoreGarbage.
List1_etc

Put the disk in shall we say, FLP1, and type:-

WREN FLP1_LIST1_,FLP1
(note comma)

Just look at that and remember it, as one day you are going to use it.

Press [ENTER], and watch the “LIST1” go.

§

TURTLE-GRAPHICS————(TERRAPIN?)

I keep looking for little things for you to punch in for yourselves, to give you something to do, and also give an insight into the various aspects of programming.

This time it is a small fancy little snippet of a Turtle Graphic. Not quite as slow as a turtle, but it sure has more twists aad turns than a turtle. A bit faster too, but the patterns are interesting. So why not sit down with me and have bit of a rest from all that hard stuff.

This came to me with a lot of other stuff, some good, some not so good. Some I don’t know whether it is good or bad as it does not work for me. I recently got Minerva, and I understand that some of the earlier material does not work on it. I still am trying to learn about Minerva. But she sure is one COOL lady. The QL really is a lot cooler.

Here is the little listing for you to type in. I can send it to you, but it is cheaper this way.

100 REMark Turtle graphics
110 WINDOW 512,256,0,0
120 PAPER 0:CLS
130 PENDOWN
140 REPeat logo
150 IF RND>.68 THEN CLS
160 note=RND
170 POINT 60,60
180 INK RND(1 TO 7)
190 turtle=RND(3 TO 70)
200 terrapin=RND(25 TO 340)
210 FOR k=1 TO turtle
220 MOVE k/.7
230 TURN terrapin
240 BEEP 3200,k/note
250 END FOR k
260 IF INKEY$<>"" THEN STOP
270 END REPeat logo

Now was that not fun? Would you like another? Well space is getting a wee bit short so we will leave it off for another time.

In the meantime, ‘night all, and have pleasant dreams of circles flashing round in front of your eyes. ‘Bye

§

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.