The Latest

DevX - Software Development Resource

Binding a form to multiple data sources

Question: I am trying to bind a form to multiple tables in a session. If I drag and drop an attribute from a single table into my form, all is

DevX - Software Development Resource

TQuery command to use to execute a SQL statement

Question: I’m trying to delete multiple records using Tquerysuch as delete from products p where p.shopno in (select shopno from shops)When I run the program, it executes the statements and

DevX - Software Development Resource

Paradox: secondary indexes problem

Question: I have just discovered a problem with secondary indexes in Paradox that I desperately need to have solved by yesterday!I have a number of database tables with a primary

DevX - Software Development Resource

Delphi 2.0 cursor handling

Question: How can I get the cursor to advance to the next form field after a field has been filled with the maximum number of characters? I am using Delphi

DevX - Software Development Resource

Maintaining arrays of bindings between names and associated arrays

Question: I have few problems with the following code: abstract class AbstractGraph extends java.awt.Frame { static int HighValue,LowValue,ArraySize; static String InstancesArray[][] = new String [20][ArraySize]; float ReturnArray(String name) { …

DevX - Software Development Resource

How to convert int to string

Question: I am looking for a generic way to convert an intto a string. It cannot be platform- or compiler-specific in its implementation. Answer: The standard C++ library defines the

DevX - Software Development Resource

Creating Java packages or library files

Question: I am creating an application by using Symantec Cafe wherein I am using one applet, from which I am calling a series of frames. I have some common functions

DevX - Software Development Resource

Byte order

Question: How does one find out the byte order of the platformon which JVM is running? For example, for a Java application that has to read a C structure from

DevX - Software Development Resource

Generic C++ Exception Handling Class

Question: I would like to see an example of a generic C++ exception class that could be used across objects. Answer: When using exception handling, it is often a good

DevX - Software Development Resource

Scrolling status bar message

Question: How can I make a message that will scroll in the status bar? Answer: The following applet constructs a thread, passing it a messageand its browser context. The thread

DevX - Software Development Resource

Tables and SQL

Question: How do you count the number of rows displayed in a DBGrid when displayed through a query? Using TQuery, I get 50 to 60 files, but want to know

DevX - Software Development Resource

TDBGrid

Question: How is possible to invert the order of a table display in a TDBGrid Component?Must it be an Index-DatabaseSource?For example, if in the database was stored:1Pippo2Gino 3PlutoHow is it

DevX - Software Development Resource

Two-table Update

Question: I’m a Paradox for Windows convert. In Paradox it’s a relatively simple thing to create a query that changes data in a field of one table with the values

DevX - Software Development Resource

How to tell when to time-out

Question: How can I determine that a user has been inactive for a certain length of time so that I may exit the application? Answer: This is an interesting question

DevX - Software Development Resource

TEdit and right-justification of text

Question: How can I get a TEdit to display right-justified text? Answer: There is no way to do this at runtime because there’s no facility in TEditto right-align text. The

DevX - Software Development Resource

Unknown EDBEngineError

Question: I am getting an usual message from exception class EDBEngineError. The message is simply: “At beginning of table.”What does that mean? I am building a TQuery SQL property in

DevX - Software Development Resource

Screen resolution

Question: I am developing an application in Delphi 2.0 on a 1024×768 resolution (large fonts), and have been trying to get it to act properly in 800×600 mode with little

DevX - Software Development Resource

Record locking (Delphi 2 Paradox 5)

Question: We are trying to write a multi-user Delphi 2.0 app (with Paradox 5.0 tables), and are looking for a way to determine if a record is locked by another

DevX - Software Development Resource

JDK1.1 and Web browsers

Question: Do the changes made in the 1.1 API mean that if one wanted to write applets for the Web, one would have to use a previous version of the

DevX - Software Development Resource

Data input

Question: I need to pass some data from the user to my applet (or application) which is to be entered from the keyboard, using TextField.The data is repetitive (it fills