devxlogo

Tip Bank

DevX - Software Development Resource

double pointer

Question: Please describe the primary use of the double pointer in C and C++; that is, **pointer. Answer: A pointer is simply the address of some variable. If you placed

DevX - Software Development Resource

Get a Dropdown Datawindow Handle

Question: How can I insert rows into a dropdown datawindow that is a column in a datawindow im my report? Answer: You need to use the following code to access

DevX - Software Development Resource

void pointers

Question: I am having trouble converting the info in a void pointer to usable information. I have a method that returns a void pointer (void*), and in one instance (the

DevX - Software Development Resource

Drop column from a table

Question: How can I drop a column from a table? Is there any way to do it without recreating the table? The table in question has several dependencies that I

DevX - Software Development Resource

Creating classes

Question: When you create a class, what do you create? Answer: When you enter the source code statements to define a class, you create a template that tells the compiler

DevX - Software Development Resource

Constructors and Method Invocation

Question: The following code works: public class MyClass { private int value; public MyClass() { this(1); } public MyClass(int v) { value = v; }} Changing the null constructor to:

DevX - Software Development Resource

Web-enabling existing PB 6.0 Application

Question: I know that there are several ways to Web-enable applications in PB. I am looking for the most cost-efficient and least time-consuming solution. Any ideas? Answer: This is a

DevX - Software Development Resource

Variant Records

Question: Does Java support an equivalent to the Pascal variant record or C union? I need to port some code to Java that uses these constructs. Answer: No, Java does