devxlogo

Tip Bank

Interoperable Dates and Times in SQL Queries

Many developers using ODBC, JDBC, OLE DB, and ADO are unaware that there is a standards-compliant solution for expressing dates, times, and timestamps in SQL statements. When writing queries in

ODBC and JDBC Compliance

“ODBC-compliant database” and “JDBC-compliant database” are nonsequiturs. ODBC and JDBC clients can connect to databases that store behavior in the form of methods, triggers, constraints, and stored procedures. The ODBC

Make HTML File Management Easier

This tip works equally well in both the Windows NT and Windows 95 browsers, and makes managing HTML files a bit easier by adding some file-type specific menu items to

Namespaces do not Incur Additional Overhead

Namespaces do not incur runtime or memory overhead. The technique used to represent namespaces is called name mangling. This same technique is used to create unique names for overloaded functions

Place a Variable-Length String in Text

VB doesn’t have a function to replace part of a string (of n-length) with another string (of x-length). The Mid() statement works only with target and replacement strings of the

Add Columns to a Standard VB List Box

Use the Win32 API to set tab stops in a Visual Basic list box by creating these declarations and routine in a module: Public Const LB_SETTABSTOPS = &H192Declare Function SendMessage

Force Uppercase Characters in a Text Box

To change text in a text box to uppercase as soon as the user types it in, use this code: Private Sub txtname_KeyPress(KeyAscii As Integer) ‘Puts in uppercase as soon