Tip Bank

DevX - Software Development Resource

Checking Alphanumeric Characters

Question: How do I check strings that have only alphanumeric characters? Answer: When you say alphanumeric, I assume you mean that the characters are in one of the following domains:

DevX - Software Development Resource

List Structure

Question: How do I control the output format for the list structure command so that it always fits on a page (portrait or landscape)? Is there another way to get

DevX - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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