>ON SELECTION BAR <bar> THIS.ioCallingForm.DeleteDocument() >>Reading the help, I see why: you can only execute a command. So I would need to call a .prg or a procedure in some procedure file (and then I would suspect that there would be problems anyhow as a popup is sort of just "out there" on it's own i.e. I am not sure I could get back to the last active form anyhow.
ON SELECTION BAR <bar> _SCREEN.ActiveForm.DeleteDocument()