
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
There’s a handy shortcut in Visual InterDev 6 that saves you from typing in the function code around an event. While you are in VID’s Source view, click the Script
The named return value is an automatic optimization that a compiler applies in order to eliminate the construction and destruction of a temporary object. When a temporary object is copied
If you’re issuing SELECT statements to a database using Java Database Connectivity (JDBC), a huge number of records can be returned by the java.sql.ResultSet. However, sometimes you will want to
Question: How do you dynamically load a style sheet? I’m trying to use the tag in the to load a style sheet. All the pages in my site use the
Sometimes a class needs to communicate with the object that created it. For example, I use a class to subclass grid controls so I can handle things such as tabbing
Select Case is commonly used to check different values of a specific variable or expression. You can also use Select Case to evaluate multiple expressions, by starting out with “Select
When you have to compare the results of floating point expressions, you can’t rely on the “=” operator due to the finite precision of Single or Double variables. To see
The DOS Copy command allows you to take the contents of two different files and put them one after the other into a third file. You can do the same
You can write JavaScript code that is more readable and maintainable by reducing object references. For instance, you can use the with() statement or nested with() statements in JavaScript to
As a database administrator, it is your responsibility to be concerned about anything that might affect the stability of your systems. In that vein, it is not enough to back
When a class is instantiated, the subsequent object is actually an instance of the most derived class in the class hierarchy. This means that even if a class is referenced
A cross cast converts a multiply-inherited object to one of its secondary base classes. To demonstrate what a cross cast does, consider this class hierarchy: struct A{ int i; virtual
Question: I have a table in SQL Server 6.5 with a datetime column that is used for tracking each time an event occurs; the date and time data are combined
When accepting input from an HTML form, you can’t assume that the user will provide the right type of data–you have to validate. For instance, if your application expects users
An extended stored procedure called xp_cmdshell causes SQL Server to spawn a command shell and execute the command given as a parameter. For example, xp_cmdshell ‘dir c:mssqlackup’ would return a
Instances of java.awt.Dialog are often used to display error messages in an application. As a result, you may find yourself writing a component that displays a message in a Dialog
You can use typeid to retrieve the type information of non-polymorphic objects and fundamental types. However, the result in this case refers to the static type of the object rather
This addin lets you quickly create a collection class, i.e. a CLS module that implements a class that behaves like a collection but only works with a well-defined type of
This addin greatly accelerates the process of creating new property procedures, both in class, form, UserControl and UserDocument modules. You enter the name of the property, its type, its arguments
Question: Is there an easy way to hide a drop-down tab without using the mouseout, mousemove, or mouseover events? These dynamic drop-down tabs are layered and in a framed page.
Question: How can I add a Share in Visual Basic to a Local or Remote Machine with permission only for a special User group? Answer: That is a rather difficult
Question: How do I grab a file’s absolute path, given a filename? Answer: All you have to do is create a File object corresponding to the filename and call getAbsolutePath().
Question: Does Java have a MOD function? Answer: The Java language has a built-in operator to perform modulus division. It is the same as that of the C and C++
Question: How can I call the Windows color dialog box in Powerbuilder 6.0? Answer: To use the Windows standard color chooser dialog, you will need to declare and use some
Question: I can’t use the LogonUser function because I don’tknow how to set (with program, if possible) the SE_TCB_NAME privilege. When I use your program that shows the use of
Question: My batch files don’t run anymore. I’ve changed the association for editting them, and now that is the default action. Also, the “add” button is disabled in the edit
Question: How can I find and replace a substring of a String? Answer: The String class is immutable. That is, once you have created a String, you cannot change its
You may have been surprised and frustrated to find that in some cases, the Java Virtual Machine (JVM) does not stop running when your application exits the static main() method.
JavaScript has C-like syntax. Therefore, it is possible to use the ?: conditional operator, which is a shortcut for the if-else block: Expression?true part:false part Try this example:
One of the hardest tasks until now has been supporting searches on text fields. As we know, indexes can’t be built on text fields and so searches on these fields
