Hi Johan,
>> I have a memory form. In the Validate All embed-point I have some code, then I want to call a popup procedure (Memory form) with selections on, and then proceed with the code after the popup form was closed.
sorry, but you're thinking in a "windows" way, not a "web" way. The short answer is that you can't do this - at least not this way.
You need to think in a "request / response" way. The user does something, you do something. The user does something, you do something and so on.
Perhaps re-frame your question in those terms, and think about what sort of things the user is doing, and then let's go from there.
cheers
Bruce