devxlogo

Tip Bank

DevX - Software Development Resource

Problems with TypeOf

Question: Given: Dim oX as Object Set oX = optChoice1 If TypeOf oX is CheckBox Then… If optChoice1 is a CheckBox the If… will be true unless optChoice1 is an

DevX - Software Development Resource

To have or to hold?

Ownership in its OO sense relates to the responsibility for the creation and the destruction of an object. An object (in its broader sense) is an owner of some other

DevX - Software Development Resource

The do’s and don’ts of typedefs

Typedefs can be used to enhance portability by hiding the underlying type of an more abstract entity. For instance, when maximal precision of a floating point is required, one type

DevX - Software Development Resource

New cast operators

C++ still supports C-style type casting in the form of ‘(T) e’ as in: int i = (int) 7.333; Nonetheless, this casting notation is not recommended. What is amiss with

DevX - Software Development Resource

Exception handlers hierarchy

It’s handy to catch potential exceptions in a bottom-down hierarchy: specific exceptions are handled first, then groups of exceptions and finally, a catch-all handler: #include //std::except is the base class

DevX - Software Development Resource

Dynamic Crystal Groups

Often, when adding Crystal reports to your system, you’ll find that userswant the same basic report grouped different ways, like sales reports bycustomer state or salesman or region, and so

DevX - Software Development Resource

Arithmetic functions in SQL

Question: How do you create or access arithmetic functions like INT, MOD, or SQRT for use in Microsoft SQL Server? Answer: SQL Server supports math functions including SQRT, CEIL, FLOOR,

DevX - Software Development Resource

SQL Database setup

Question: I am writing a CGI program to query an SQL database for a client’s information. I will then create a Microsoft Access database from this querry to pass to