101 Tech Tips for VB Developers
These tips and tricks were submitted by professional developers using Visual Basic 3.0, Visual Basic 4.0, Visual Basic 5.0, Visual Basic for Applications (VBA), and Visual Basic Script (VBS). The tips were compiled by the editors at Visual Basic Programmer’s Journal. Special thanks to VBPJ Technical Review Board members Francesco Balena, Chris Kinsman, Karl E. Peterson, Phil Weber, and Jonathan Wood. Instead of typing the code published here, download the tips from the free, Registered Level of The Development Exchange at http://www.windx.com.
Read more
Understanding the Windows Scripting Host
One of Windows’s most notable deficiencies when compared with other operating systems is its lack of a batch language for automating tasks. Although the underlying MS-DOS supports batch files, they are of little use in the Windows environment: under Windows 3.1 you can’t even launch Windows programs from batch files. Support staff wishing to automate tasks for their users have been forced to use third-party tools like Wilson WinBatch or JP Software’s Take Command. Because these tools are not part of Windows, they must be separately installed before they can be used. Licensing of these toolsmeans that additional costs are often incurred, which, if the budget is not available, becomes a problem.
Read more
Adobe InDesign CS3 Scripting Guide VBScript
This document shows how to do the following:
.Work with the Adobe® InDesign® scripting environment.
.Use advanced scripting features.
.Perform basic document tasks like setting up master spreads, printing, and exporting.
.Work with text and type in an InDesign document, including finding and changing text.
.Create dialog boxes and other user-interface items.
.Customize and add menus and create menu actions.
.Respond to user-interface events.
.Work with XML, from creating XML elements and importing XML to adding XML elements to a layout.
.Apply XML rules, a new scripting feature that makes working with XML in InDesign faster and easier.
We assume you already read Adobe InDesign CS3 Scripting Tutorial and know how to create, install, and run scripts.
Read more
Simple Dialogs in WSH
Most WSH scripts show results in dialog boxes or ask for user input. This chapter introduces a few techniques offered in JScript and VBScript to create dialogs within WSH scripts.
Read more
VBScript Language Reference VBScript Data Types
VBScript has only one data type called a Variant. A Variant is a special kind of type that can contain different kinds of information, depending on how it’s used. Because Variant is the only data type in VBScript, it’s also the data type returned all functions in VBScript.
Read more