The Latest

DevX - Software Development Resource

Accessing Field Names that Contain Spaces

Question: I created an ASP that uses VB script to access an Access 97 database in a test environment. Here is the query used: “select * FROM property WHERE user

DevX - Software Development Resource

Selecting One Person Per Address

Question: I have a mailing list with one record per person, but I want to mail to only one person per household. How can I select just the first record

DevX - Software Development Resource

RDBMS

Question: What is RDBMS? Answer: It’s lingo for “Relational Data Base Management System.” Related Posts Quick Way to Disable Copy-Paste in a Textbox in a WinForms ApplicationJudge Blocks Treasury’s Shareholder

DevX - Software Development Resource

Wizard interfaces

Question: Do you know any good Web sites or have any tech tips on creating wizard interfaces? Answer: Creating wizard interfaces is straight-forward when you know how. All a wizard

DevX - Software Development Resource

Visualizing PowerBuilder

Question: I have a difficult time using PB because I can’t see the code flow. I am an experienced programmer with COBOL, PL/1, and SQL and have taken several PB

DevX - Software Development Resource

BinToDec – Convert from binary to decimal

‘ convert from binary to decimal” NOTE: requires Power2()Function BinToDec(value As String) As Long Dim result As Long, i As Integer, exponent As Integer For i = Len(value) To 1

DevX - Software Development Resource

InstrRev – Backward Instr for VB4 and VB5

‘ A clone of VB6’s InstrRev function (including its quirks)’ that works under VB4 and VB5Function InstrRev(StringCheck As String, StringMatch As String, _ Optional Start As Long = -1, Optional

DevX - Software Development Resource

GetUNCName – Convert a file path to a UNC path

‘ Converts a reference to a file in the standard Windows’ format (e.g. “H:ServerDirFilename.ext”) in the corresponding UNC’ format (e.g. “\ServerNameExportedDirServerDirFileName.txt”)” It turns to be very useful when a program

DevX - Software Development Resource

Bin – Convert from decimal to binary

‘ convert from decimal to binary’ if you pass the Digits argument, the result is truncated’ to that number of digits” NOTE: requires Power2()Function Bin(ByVal value As Long, Optional digits

DevX - Software Development Resource

Converting a time_t Value to a tm Struct

For humans, the time_t value is unintelligible. The Standard Library defines the struct tm that can represent date and time in a more readable form. The struct tm is declared

DevX - Software Development Resource

Store Time Using the 64-Bit time_t Data Type

In C and C++, time is stored as a positive integer that contains the number of seconds elapsed since January 1st, 1970. The standard type time_t (defined in the header

DevX - Software Development Resource

Use Y2K-Compliant Date Formats

The C++ Standard Library uses the ANSI C date and time library. Fortunately, the functions and data structures are Y2K compliant, so legacy code that was written nearly 30 years

DevX - Software Development Resource

Pick Your Target Browsers in FrontPage 2000

Creating HTML pages that work well in the various browser versions can be difficult. It is hard to know what features, such as Dynamic HTML and VBScript are supported in

DevX - Software Development Resource

Repair Your Toolbox in Visual InterDev 6

The Visual InterDev 6 toolbox is full of handy design-time controls and HTML shortcuts. As you customize the toolbox, you run a risk of accidentally deleting a tool such as

DevX - Software Development Resource

Make Web Visitors Use the Front Door

When you design a Web page using frames, you expect visitors to start at the address of the frameset holder, for example, default.htm. However, people who are linking from a

DevX - Software Development Resource

Use OLE Automation to Print Access Reports

You can print canned reports in an Access database from VB in different ways. I created this routine to print any report with any criteria or filter from any database.

DevX - Software Development Resource

Find Out Who is Connected to an Access Database

If you’re creating a Jet-based multiuser database system, you’ll sometimes need to know who is currently connected to the shared database. To get this information in situations where you don’t

DevX - Software Development Resource

Implementing COM Interfaces in VB

You should not derive one user-defined COM interface from another user-defined interface when it comes to implementing COM interfaces in VB. A Visual Basic class can inherit from an interface,

DevX - Software Development Resource

Passing Arguments By Reference/Pointer in ASP

Question: I am using a COM object written in Visual C++ using MFC. One of the object methods has a signature like this:void Function(BSTR, BSTR, long*)Whenever I call this method

DevX - Software Development Resource

Adding Virtual Directories to Your Project

Question: I am importing an existing site into a Visual InterDev project. However, a key virtual directory is not being included in this import. How can I force/cajole InterDev to

DevX - Software Development Resource

Automatically Calling a Function When a Page Ends

Question: Is there any way to call a function automatically when an ASP page ends? I know about Application_OnEnd and Session_OnEnd but isn’t there any “Page_OnEnd” function or some way

DevX - Software Development Resource

Displaying Excel Information in ASP Pages

Question: How can ASP query an Excel sheet and get all the books’ names that reside in that Excel document using ADO (or any other way)? I want to display

DevX - Software Development Resource

Connecting to Databases from Web Servers

Question: In Visual InterDev I have successfully added a data connection. In the Data View I can see all my tables, fields, etc. My database resides on a SQL 7