; ディレクトリ一覧表示サンプル ; (CHDIRを押すと、入力したディレクトリに移動します) ; alloc dirbuf,32000 dirbuf="" sel=0 ad="" objsize 200,24:pos 0,30 listbox sel,200,dirbuf input ad button "CHDIR",*chg *getdir color 255,255,255:boxf 0,0,640,24 color 0,0,0:pos 0,0:mes "DIR="+curdir dirlist dirbuf,"*.*" objprm 0,dirbuf stop *chg chdir ad if stat : dialog "ERROR!" goto *getdir