devxlogo

Tip Bank

The ‘greater-than’ vs. ‘comment’ dilemna

Question: The ‘greater-than’ vs. ‘comment’ dilemna Answer: There is a trick in writing JavaScripts which all developers should learn as soon as possible. When putting a script in your HTML,

Changing Button Captions

Question: How do you change a button’s caption after it is created? Answer: Java’s Button class defines two methods for getting and setting a button’s caption. They are getLabel() and

Accessing a C Library from Java Applet

Question: I want to be able use a Web frontend for a databaseapplication. I would like to use Java to process theuser input and C for accessing the database. Myquestion

TIniFile’s Hidden Limitation

Question: I have an INI file that is approximately 20K with all entries in one section. If I use TIniFile’s ReadSection method, only part of the section gets loaded. Why?

Creating a LIST_SELECT Event

Question: How do I create a LIST_SELECT event? Specifically, what should I put in the fields of the statement: Event anevent = new Event(mylst, event.when, event.LIST_SELECT, ?, ? event.key, event.modifiers,?)