[Tip] inline Servoy Sample Code
by Marcel Trapman
www.it2be.com
Because of one remark on the forum by Jan Blok (thanks Jan) I realised that this one is so simple and so much part of my daily business that I forgot to mention it. Sorry for that...
When we open the method editor we have 4 views/forms:
1. Top left: The Navigator showing all forms, plugins, javascript functions etc.
2. Bottom left or on the right of The Navigator: The Outline showing all methods in the selected form.
3. Top right: The Method editor form itself to edit the methods.
4. Bottom right: The debugger.
Please see the docs to check what they are all about including all buttons. Some of them hold great power. The button that needs special attention imho is the 2nd button from the righ on top of the Outline view. When you move over this button you will see a tooltip 'Move sample'.
Now open a method or create one. Select a function (not the javascript ones), form, plugin etc in the Navigator and click on the 'Move Sample' button and voila there you have your example.
This works on almost everything including 3rd party plugins when developed properly (check out my plugs, they all have tooltips). Most of the examples are really a great help!! Especially of interest with more complex things like the databasemanager...
Cheers,
Marcel