Tip Bank

DevX - Software Development Resource

Access Modifiers

Question: When should I make member variables protected and when should I make them private? Is it a good practice to ignore protected variables? It seems to me that most

DevX - Software Development Resource

strchr

Question: Where can I see the source code to the functionstrchr? Answer: If you purchase a compiler such as the professional edition of VC++, the source code for all run-time

DevX - Software Development Resource

First Visible List Row

Question: Is there a way to find out the first visible row in a List? Answer: The standard AWT java.awt.List class does not provide a means for determining the first

DevX - Software Development Resource

Checking for Blank Form Fields

If you use an HTML form at your Web site, you may not want anyone to submit the form if required fields are left blank. You can check for blank

DevX - Software Development Resource

Designating Disabled Text

A well-developed user interface will make it clear which components in a dialog are available to receive input from the user. The AWT Component class has a setEnabled method for

DevX - Software Development Resource

Displaying Text and Setting the Font

Question: I am working on a project that reads in teletext information from the COM port in 8-bit binary form. Since ASCII does not represent teletext graphical characters, I have

DevX - Software Development Resource

SizeOf Function in Delphi

Question: I’m using Delphi 2.0 Client/Server. The Delphi Object Pascal user’s guide says that the Integer size is 2 bytes (signed 16-bit with Range -32768-32768). But when I do the

DevX - Software Development Resource

Dynamically Changing Table Values

Question: I have a table that contains the values returned from a SQL database. I have created a division within each cell. The ID value for the division is the

DevX - Software Development Resource

Splitting a TXT File

Question: I want to split a TXT file into smaller TXT files. The program should split the file every time there are three empty lines. For example: Paragraph1Paragraph2 Paragraph1 and