I try to write my first script with atPascalFormScripter:
Open is a method and need to be registered. Easiest way is to add ap_DB.pas unit to your delphi project and then use DB unit in your script (uses DB;).
Thanks for your help, it works. But is there any documentation that tells me things like that? Didn't find it in http://www.tmssoftware.com/site/manuals/TMS%20Scripter%20Manual.pdf
The manual mention how to use script-based libraries (which you use by adding them to "uses" clause). Most of the VCL is imported as script-based libraries, there is almost a direct mapping to Delphi units - DB -> ap_DB, etc.