Inside the event loop:
In your drop function:
Case EVENT_WINDOWACCEPT Select EventSource() Case Window1 DropFile( Window1:TGadget , String(EventExtra:Object()) ) End Select
In your drop function:
Function DropFile ( Window:TGadget , Drop:String ) DebugLog "Window 1 got "+Drop+" dropped onto!" Local Ext$=ExtractExt$( Drop$ ) Select Ext.toLower() Case "wav" Do_Something_With_Music() End Select End Function