I didnt test this but all that it does is check the creat time for a file
you might want to use "last edited time" too
Code:
dialog mrc-sort {
Title "Choose MRC Version"
size -1 -1 300 100
option dbu
list 100, 5 20 290 50, sort
button "Delete", 900, 125 55 50 20
}
on *:dialog:mrc-sort:init:0:{
var %null = $findfile($mircdir,*.mrc,0,mrcprop $1-)
}
alias mrcprop {
did -a mrc-sort 100 $nopath($1-) Created $asctime($file($1-).ctime) : $1-
}
on *:dialog:mrc-sort:sclick:900:{
var %fullfile = $gettok($did(mrc-sort,100),2,58)
var %check = $input(Are You Sure?,y)
if (%check == $true) { remove $+(",%fullfile,") }
}


again, I didnt test it yet
Last modified: $asctime($file($1-).mtime)

Edit: I was missing a : on the init section

Last edited by MikeChat; 08/12/05 05:26 PM.