The Visual Basic Binding

25tht September 2015

Visual Basic Binding Specification

The Visual Basic binding is maintained by Thomas Habing <thabing@uiuc.edu>

The ZOOM API specification for Microsoft's Visual Basic language can be found at vb-zoom.sourceforge.net/API.html

Canonical Sample Program

To give a flavour of the Visual Basic binding, here is ZOOM's equivalent of the ``Hello World'' program: a tiny Z39.50 client that fetches and displays the MARC record for Farlow & Brett Surman's The Complete Dinosaur from the Library of Congress.

Set zoom = WScript.CreateObject("VBZOOMC.ZoomFactory")
Set zconn = zoom.CreateZoomConnection("z3950.loc.gov", 7090)
zconn.SetOption "databaseName","Voyager"
zconn.SetOption "preferredRecordSyntax", "USmarc"
Set zquery = zoom.CreateZoomQuery("@attr 1=7 0253333490")
Set zrs = zconn.Search(zquery)
WScript.Echo zrs.GetRecord(0).RenderRecord

Visual Basic Binding Implementations

We currently have the following implementations of the Visual Basic binding:

Feedback to <mike@indexdata.com> is welcome!