4 'GET SELECTION VAR sel'
8 if right(dir,1)~='/' & right(dir,1)~=':' then dir=dir'/'; else nop
9 address command 'list >t:list' dir 'LFORMAT "%N %L %D"'
10 address command 'sort t:list t:list2'
12 if ~show('l','rexxbgui.library') then do
13 if ~addlib('rexxbgui.library',0,-30) then do
20 call bguiopen('AWebShowDir')
22 call bguireadentries('t:list2','LST')
24 address command 'delete >NIL: t:list t:list2'
26 signal on syntax /* important: bguiclose() MUST be called */
39 bguilistview('listv',,'LST','S',3 90 20 20)||,
41 bguibutton('del','_Delete')||,
43 bguibutton('quit','_Quit'),
44 )||bguilayout(LGO_FixMinHeight,1),
45 ,grspace.normal,grspace.normal)
47 call bguiset(obj.del,,GA_Disabled,1)
49 a=bguiwindow('Directory "'sel'" locally ('dir')',g,55,80,,scr)
51 if bguiwinopen(a)=0 then bguierror(12) else nop
54 do while bguiwinwaitevent(a,'ID')~=id.winclose
56 when id=id.listv then call bguiset(obj.del,a,GA_Disabled,0)
57 when id=id.del then do
58 parse value bguiget(obj.listv,LISTV_LastClicked) with,
59 file (tab) /* bug fixed */
61 if bguireq('Delete' fname'?','*_Yes|_No',,a)=1 then do
62 address command 'delete >nil:' fname
64 call bguilistvcommand(obj.listv,a,'remselected')
66 call bguireq('Unable to delete!','*_OK',,a)
70 when id=id.quit then leave
71 when id=id.winclose then nop
78 if rc~=0 then address aweb.1 'request Error "' '+++ ['rc']' errortext(rc) 'at line' sigl '" "_Abort"'
85 address aweb.1 'request Error "' '+++ Break at line' sigl '" "_Abort"'