Visual Basic and the HP e3000 Examples |
||
Home |
The problem If you already have an ODBC enabled TurboIMAGE database, a Visual Basic add-in that comes with Visual Basic 6 either Enterprise or Professional editions can be used to generate a Visual Basic program that performs file maintenance. Installation and Configuration Perhaps the most difficult and time consuming aspect
of “new technologies” is getting the environment properly configured.
Think of it this way, 15 years ago (and even today), a COBOL programmer
working on an HP 3000 (that’s what the called them in those days) could expect
to receive a new computer, have it installed be able to develop terminal-based
applications within minutes of getting a logon account and password.
The base computer can be ordered with a COBOL compiler and the
“installation process” typically assures that certain functionality is
available immediately. Now consider what is required to set up a development environment for VB on a stand-alone Windows 98/NT computer, Windows computers that include Networking, an e3000 Networked and, finally, an e3000 on which ODBC is enabled for networked database access. Stand-Alone Windows with VB
Now consider what is required to set up a development
environment for VB on a stand-alone Windows 98/NT computer.
Let’s say that you already own the Windows 98/NT computer and you want
to start developing in VB for the first time.
Here are the typical steps to start developing in VB:
Visual
Data Manager The Visual Data Manager is an often overlooked software product that Microsoft gives away! It can be used either stand-alone or as a VB add-in. An example of it’s use as a VB add-in will be shown later in this article.
Windows NetworkingNow consider a two computer environment in a least two computers are networked. Let’s say that you already own the Windows 98/NT computers and you want to start networking for the first time. Here are the typical steps to networking:
e3000 NetworkingNext, the e3000 must be configured for networking.
Here are the typical steps to e3000 networking:
e3000 ODBC AccessFinally, after e3000 networking has been enabled, the e3000
must be configured for ODBC access to databases. Here are the typical steps to ODBC configuration:
Properly ConfiguredOnce Visual Basic has been installed, the Windows computers
and the e3000 have been setup for networking, the database has been configured
and the ODBC software has been configured, the development environment can be
considered to be properly configured. Getting something to work... This article presents a trivial example of Visual Basic/e3000 integration. It will show that it is after configuration issues are resolved, use of the e3000 with Visual Basic is in most cases no more difficult than using Visual Basic with a native 98/NT data source or application. When both the client host and the server host are properly configured for networking and interoperability (using the right middleware products), it is often difficult to tell which server is actually being used! How Easy Is It? Using an “off-the-shelf” e3000 and an
“off-the-shelf” Windows 98/NT computer with Visual Basic 6.0 and some free
software, it is possible to create a simple client/server application for any
database in just a few minutes. The
caveat is that both the e3000 and the Windows platforms must be properly
configured, we’ll get back to that. The
point here is that the application can be created without purchasing any
software other than what comes with the base e3000 which must include a database
product (IMAGE or ALLBASE) and any Intel based client or server host (pc or
server) with Visual Basic 6.0 or higher, it is possible to create a
client/server application. An ExampleFigure 1 shows a screen that can be used to maintain one table of the MUSIC database that comes with all e3000’s. Figure 2 shows the Visual Basic code that the application contains. This application was created in less than two minutes and without my writing a single line of code!
Assuming that the e3000 and the Windows computer have been properly configured, (Where proper configuration includes network configuration, and installation and configuration of certain optional features and Windows/MPE integration.), these are the steps required to create the above application.
A Small Matter of Proper Configuration All e3000’s come with scripts to create at least
two sample databases. These are in
the SAMPLEDB group of the SYS account. One
of these databases is called MUSIC. The
scripts not only create the database but also create a DBE to allow SQL access.
Configuring the e3000 for our example includes creating the MUSIC
database and its DBE. One must also network enable the e3000 by configuring in a
proper IP address. The Windows computer must also be network enabled and Visual Basic with the proper level of Microsoft Data Access components must be installed. This computer too must be assigned an appropriate IP address. Finally, both computers must be networked together using cables, hubs, etc.
. |
|
Copyright (c) 1999 - 2000 Transformix Computer Corporation |
||