Script Basics
Created by Bruce Fallen in 5/15/2009 11:58:47 AM

WordFusion provides a very powerful programming language to provide the flexibility to perform any task during document assembly. WordFusion's script functionality makes use of the award winning Microsoft Visual Basic.Net language.

Microsoft Visual Basic.Net is a language used by more programmers than any other language in the history of computing. It is one of the easiest languages to learn and you can create useful programs by learning just a few of its features and is known by millions of programmers around the world.

To begin writing Visual Basic.Net scripts you select the script tab in the designer window. This view supports coding help such as IntelliSense and collapsible code sections. Other features include word wrap, bookmarks, and displaying line numbers.

A complete language reference can be found at http://msdn.microsoft.com

    Field Scripts

Fields can have script assigned to them that runs at Assemble time when the user triggers that event. Different Field Types have different events to choose from. To create a script for a selected field the user can either click "F7" when the field is selected in the designer or click the script tab. With the script tab selected then user then selects the Field from the Field dropdown and then selects an event from the event dropdown.

 

Figure 9: Location of the Field and event dropdown in the WordFusion Studio script editor

Figure 10: Script editor showing script for the lost focus event

When a user selects an event in the event dropdown the script editor displays the script in the script editor window, if the event selected was not present in the script then it is created and the user can begin writing script for that event.

powered by metaPost


 


Print

  Comments

Copyright 2009 by Zumesoft Pty Ltd
Privacy Statement | Terms Of Use