devxlogo

Tip Bank

DevX - Software Development Resource

Insert row drop-down datawindow

Question: How do I insert a row in a drop-down datawindow in PowerBuilder? Answer: You need to use a function of the datawindow control called GetChild. This function returns a

DevX - Software Development Resource

JavaScripts

Question: Can you have more than one JavaScript per page? If so, how do you do it? Answer: Yes. You can have more than one script block per page as

DevX - Software Development Resource

Date field EditMasks

Question: Using an Editmask on a date field, PowerBuilder does not allow a date greater than 12/31/2999. We would like to allow users to enter a ‘high date’ of 12/31/9999

DevX - Software Development Resource

Audio support on Windows CE?

Question: I know that the multimedia API is limited in the Windows CE environment, but is there any other way to control the audio device? What I want is to

DevX - Software Development Resource

Where Can I Find Documentation?

Question: Where can I find a good book or good doccumentation on Visual InterDev 6.0? Answer: As you’ve discovered, the online Help is disabled in the Visual InterDev March Pre-release.

DevX - Software Development Resource

JavaScript Causes IE4 to Crash

Question: Can someone help with identifying/deciphering the hex instruction 0x70fd2b7b of JavaScript into a corresponding command? My application randomly causes the IE4 browser to crash. The instruction is always the

DevX - Software Development Resource

The Explicit Keyword

A constructor taking a single argument is by default an implicit conversion operator: class C { int I; //… public: C(int i);//constructor and implicit conversion operator //as well }; void

DevX - Software Development Resource

Mem-initializer Evaluation Order

When initializing objects data members by a mem-initializer list, the compiler transforms the list into the order of the declaration of the data members in that class: class A {

DevX - Software Development Resource

Avoid Using malloc() and free() in C++

The use of malloc() and free() functions in a C++ file is not recommended and is even dangerous: 1. malloc() requires the exact number of bytes as an argument whereas