The Latest

DevX

Replicate a string of any length

The String$ function can replicate only 1-char strings, so it seems that you need a loop to duplicate strings that contain 2 or more characters. However, this is a one-liner

DevX

Export to a text file with the GetString method

The GetString method of the Recordset object returns a formatted string that contains all the values in each field and each row in the recordset, with your choice of column

DevX

Faster string appending with Mid$ command

As you probably know, the “&” operator is rather slow, especially with long strings. When you have to repeatedly append chucks of characters to the same variable, you can speed

DevX

Export to a text file with quoted fields

As explained in another item in this Tip Bank, you can use the Recordset’s GetString method to export a Recordset to a comma-delimited or tab-delimited text file. However, if you

DevX

Clone a Font object

When you want to assign a control’s Font to another control, the first obvious way is to assign the Font property directly, as in: Set Text2.Font = Text1.Font but in

DevX

Manually Adjust Leading in HTML Text

Do you have problems with the spacing that HTML line breaks and paragraph tags give?Or have you ever wanted leading that was in-between the two or just a little more

DevX

Copying Files

Question: Is there a simple way of copying a file from one directory to another? Answer: There is no predefined convenient method for copying a file from oneplace to another.

DevX

No Response From Server Process

Question: When I use onstat -d, the message “No response from server process” pops up. Then I can’t shutdown the database or do any other jobs. I could use dbaccess,

DevX

DWORD Equivalent

Question: I’m trying to translate from VC++ to Java. Can you declare a variableDWORD in Java? If not, what is the Java equivalent? Also, what is theequivalent for HINSTANCE? Answer:

DevX

Preprocessor Support

Question: Is there something similar to the C/C++ compiler directive #ifdef,#define, and #endif in Java? I would like to compiledebugging code conditionally. Answer: This is one of the first questions

DevX

Exception.what() Gives Vague Description

Question: I’m using a catch(exception e). When I come in the catch-block and print the message belonging to the exception, I receive the message “9exception.” What does it mean? Answer:

DevX

Return Values from Java to Unix

Question: I am calling a java program from a Unix script and passing threeparameters. Once the Java program is done, I want to return two valuesback to the Unix program

DevX

TextField Max Characters

Question: How do I restrict the number of characters to be entered in a TextField? Answer: Setting a maximum character count is not a built-in function ofTextField. You have to

DevX

Standard Input Exception

Question: Why do I have to catch an exception when I use System.in.read()? Answer: System.in is an InputStream, and like any InputStream, an I/O errormay occur when you read from

DevX

System Shutdown

Question: Is there an API that I can use to sense that the system is shutting down? Answer: Up until just recently the answer was no. But Sun keeps on

DevX

Change Task Print Layout

Question: How can I change the form used to print tasks? I would like it to print more than one line of notes. Answer: The standard form for printing a

DevX

Java Directory Guidelines

Question: Are there any guidelines for what the directory structure of a Java-based project should be? Answer: The only real guidelines govern the layout of your source code. Yourdirectories should

DevX

Date Conversion

Question: Can you point me at or come up with a generic class that allows date manipulation and storage without running into OS-specific or February 29 or Y2K issues? Answer:

DevX

HTML Pop-Up Menus Rendering Issues

Pop-up menus in normal HTML pages are usually implemented using Layers (DIV tag). However, the leading browser applications in the market have this known problem with layers: if a pop-up

DevX

Convert Form Collection into a String

You can convert the entire Request.Form collection into a single string variable just by referencing the collection without specifying the key or index.The format of the string would look like

DevX

XSL Editor

Question: I have seen a lot of XML editors coming out, and there are some that are very good. For me at least, developing the XSL has been more difficult

DevX

Error 208

Question: Error 208 appears regularly on my IBM RS6000 running Informix 7.3. The onconfig setting for shared mem is 0 ( no limit). What do I do about this? Answer:

DevX

Message Display While Page Loads

Question: I have an ASP application that retrieves several rows from a database using ADO. For those users who have a slower connection, I would like to know if there

DevX

SQL Version

Question: If my SQL Server has the following specs: 6.05.02 SQL-DMO6.50.252 DB-Library Which version do I have? And which service pack version do I have? Answer: If you want to