devxlogo

July 10, 1998

Invoking a JavaScript Function

For the two major browsers, the easiest way to invoke a JavaScript function is create a java.net.URL instance using the JavaScript: protocol handler. To invoke the JavaScript command, pass the

Display Horizontal Scrollbar

Unlike the Windows 95 common controls, the standard list box doesn’t have a horizontal scrollbar when list items are too wide to fit within the list box. Fortunately, it’s not

Get the True Member of an Option Array

Setting an element in an array of option buttons to True is easy. Click on the option button, or use this code: OptionArray(ThisOne) = True ThisOne is the Index of

Browser Detection from Applet

The Java core API includes a class called java.lang.System from which system dependent operations can be performed. One of the methods of the System class is getProperty(String) which will return

Protect Data Within Modules

Use Private variables in BAS modules to protect data that the module’s routines must access, but which should be hidden from the rest of the application: Dim hidden_data As IntegerFunction

Convert a Text File into Access MDB

It can be troublesome to convert a text file into an Access database. It takes a lot of time to open the file for sequential access and create new records

Debug Error Handlers

Visual Basic gives you the option to turn off error trapping in your projects. This is useful when you suspect that your error handlers contain errors themselves. To turn off

Quick and Easy SCHEMA.INI

To create a SCHEMA.INI file for a text file quickly and easily, let the ODBC setup and drivers do it for you. Go to the Control Panel and start ODBC.