Tip Bank

DevX - Software Development Resource

Create a Directory From an ASP Page

Question: How do I create a directory in ASP? Answer: Use the ‘CreateFolder’ method of the FileSystemObject object. Set fs = Server.CreateObject(“Scripting.FileSystemObject”)fs.CreateFolder (“foldername”) Obviously, you need to have proper permissions

DevX - Software Development Resource

Strip Leading Zeros in ASP Output

Question: How do I strip off leading zeros from data displayed from an ASP page? Answer: Use the FormatNumber function.If value = “0000046” Then FormatNumber(value,0) will result in 46. FormatNumber(value,2)

DevX - Software Development Resource

Center Your Frames/Dialogs

You can find many tips on how to center a window within the screen, but howabout centering a window in its parent container? The following code showsyou how to do

DevX - Software Development Resource

Detect if Swing is Installed

Sometimes it is useful to know if Swing is installed in a Java environmentor not, especially if you are dealing with browsers. You can simply try tocreate a Swing component,

DevX - Software Development Resource

Who’s Who in Java Commerce

Java WalletThe Java Wallet is a family of Java products designed to enablesecure electronic commerce operations. It incorporates the Java CommerceClient, Commerce JavaBeans components, the Gateway Security Model, and JavaCommerce

DevX - Software Development Resource

IIS – Manipulating the Metabase

Question: I have been trying to change settings for the IIS server in order that I can set the flag to allow an out-of-process Active X EXE Server to be

DevX - Software Development Resource

Templates

Question: I’m porting a UNIX app to NT; one of the class hierarchies includes something like this: template class base{ // stuff};template class derived : public base, public base{ //

DevX - Software Development Resource

Const & Efficiency

Question: Can you tell me which of these implementations is more efficient and why, assumming this function cannot be inlined and is called often? First option: int even( int &val){if

DevX - Software Development Resource

JOptionPane

Question: When creating an input dialog box with JOptionPane.showInputDialog, isit possible to have a masking character, such as the * for password input? Answer: As implemented in the Sun JDK,