devxlogo

The Latest

OPO and stored procedure parameters

Question: Stored procedure on WG7.3 Oracle expects three parameters. I can get OPO 2.0 to pass the params if I cite them literally as, for example, exec sql begin addnewperson(‘John’,’Quincy’,’Doe’);

How to add custom menu and toolbar to report object

Question: I’m using Power Objects 2.1 and am trying to add a custom menu and toolbar toa report object. I’ve successfully done this withform objects by using the InitializeWindow, TestCommand

Referencing instances of classes

Question: How do classes communicate? If class A created one or more instances of class B and class C, how can class A keep track of all the instances of

Pop-up list problems

Question: Why can’t I put a simple piece of code in the click event for a list box and have it execute? Also, how can I choose a value from

OPO 2.0 and mathematic operations

Question: Yesterday I received a description for a reality problem I must represent in my OPO-database application. It concerns the drinking water supply for a city, and the staff of

Field-level and interfield validations

Question: Field-level validations should be done when the user visits the field. How can this be done?Interfield validations on the same screen also should be done when the user visits

Cursor position within a window

Question: I have a DB log-on panel defined for my application, and the user ID is loaded from an INI file. I would like to have the cursor on the

Form width and length

Question: My program has two MDI forms. I have an option that allows the user to tile them horizontally or vertically. How can I tell at runtime what the max

“Cannot Open Component Library” — What to do

Question: I’ve been getting the following errors when I try to launch Delphi:“This program has performed an illegal operation and will be shut down.If the problem persists, contact the program

Hiding application

Question: I have a third-party component I am using to make an icon for my app in the Windows 95 system tray. This works great, except that I need to

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

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

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

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

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) { …

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

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

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

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

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

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