myForm = VCL.Form("MyForm") function OnFileDrop(Sender, n,filelist) local fileliststr = "\n" table.foreach(filelist, function(k,v) fileliststr = fileliststr..v.."\n" end) VCL.ShowMessage(string.format("Total %d file(s) dropped\n",n)..fileliststr) end; myForm._ = { caption="Test Form", width=400, height=400, onfiledrop="OnFileDrop", }