Tip Bank

DevX - Software Development Resource

Autonumbering in SQL

Question: I am having to reformat data for addition to a database. My current struggle involves an identification field for certain records. In the new database it needs to be

DevX - Software Development Resource

FoxPro 2.5

Question: Is there a 2.5 patch for running on fast computers? Answer: The only patch that I am aware of is the 2.6 patch.

DevX - Software Development Resource

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 - 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