DLM |
Return System Directory Delimiter |
String, operating system's directory delimiter
The DLM variable contains the operating system's directory delimiter (e.g. "/"... for UNIX, "\"... for Windows).
Example:
On a Windows PC:
?dlm
\
The following is a Tree View list box example:
list_box 10,@(5,5,25,10),opt="e|",fmt="!diskette|!File|!File_open",sep=dlm
F=1,D$="."
NXTDIR:
open (F)D$
NXTFILE:
read (F,end=ENDDIR)F$
if F$(1,1)="." \
then goto NXTFILE
if mid(F$,-1)<>dlm \
then list_box load 10,0,pth(F)+dlm+F$;
goto NXTFILE
D$=pth(F)+dlm+F$
F++
goto NXTDIR
ENDDIR:
close (F)
F--
if F>0 \
then goto NXTFILE
escape