Name

The Name option, together with the Category option, help you find and insert proper Visual Basic statements into the edit box.

The Name option lists the Visual Basic components that have been included in the Script Assistant for the currently highlighted category. Anytime you select a name in the list, concise help for that component will be displayed in the Description option to the right of the Name list.

Inserting Visual Basic Code into the Script Edit Box

Once you find a named Visual Basic component you are looking for, you can double-click on it to insert it into the Script or Expression edit box. Alternatively, you can single-click on the desired component and then click on the Insert button at the bottom of the Script Assistant.

Understanding the "User-Defined" Terms

Most Visual Basic language components have one or more terms that the user must define. After insertion of a new Visual Basic component into the edit box, any such user-defined terms will be displayed in double-angle brackets. For example, the function "Left," which is used to return the left portion of a text string, will appear like this after insertion into the edit box:

Left(<<String>>, <<Length>>)

In this case, the two user-defined terms, "String" and "Length," tell the function which string to process and how much of it to return. You need to fill in any such user-defined terms, deleting the angle brackets in the process, to properly complete an inserted Visual Basic component.

Filling in the "User-Defined" Terms

After inserting a Visual Basic component using the Name option, the first user-defined term will be highlighted for you automatically. You can then properly replace that user-defined term either by inserting another component using the Name option, or by manually overwriting it using the keyboard. The advantage of using the Name option is that, once the first user-defined term has been overwritten, the highlight will automatically jump to the next user-defined term (if there is one). However, if you overwrite a user-defined term using your keyboard, you can simply use your mouse or arrow keys to highlight the next user-defined term.

Related Topics