> > Anyone has a simple but good BASIC "routine" to read the contents of a
> > directory and put it into variables....
> Set textcolor to backgroundcolor, clear screen, do FILES "*.LDR" and PEEK
> the filenames out of the VRAM. Take in account that when using MSX-Dos2 the
> first line displays the current directory. So search the first line for a
> :-sign. If it is there, then skip the first line.

        Aaaaaaaaaaaaaaagggggggggghhhhhhhhhh!!!!!!
        Grauw, it's very dirty! And slow! :PPPP

        Take a look at my page, in the softwares section.
        Look for "Menu para diskette". There are two versions. One in
assembly, the other in assembly and BASIC.
        I don't remember now, but I think that the BASIC version put the
filenames in BASIC variables or, at least, in a contiguous area in RAM.
        Ok, it's in portuguese, but too few words, you can understand
easily.

> I have done this before, so it works.

        Yeah, me too.
        I also said an interesting "launcher". The program just do a FILES
on screen and use the screen as RAM. I mean, no POKE or PEEK. Just VPOKE
and VPEEK. The program used the FILES to show the directory on screen and
some VPEEKs and VPOKES to put a cursor. More VPEEKs to read the desired
filename and a RUN. Very simple.
        But this method has a problem: if the disk has too many files will
be scroll, and you'll miss the first filenames.


Adriano Camargo Rodrigues da Cunha               ([EMAIL PROTECTED])
Engenharia de Computacao - UNICAMP
http://www.adrpage.cjb.net                       MSX-TR:I have one.And you?

* The only thing worse than X Windows: (X Windows) - X *


****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****

Reply via email to