devxlogo

Tip Bank

Cloning: Shallow vs. Deep Copies

Question: I am seeking to clone an object that contains anarray of the type float[][] which in turn contains primitive types. Using super.clone() and a clonable interface in the class

Boolean casting

Question: Why am I getting a type conversion error with the following method: public synchronized void setVisible(Boolean b) { setLocation(50, 50); super.setVisible(b);} Answer: You do not mention what setVisible method

Access controls inside a tab object

Question: How can I access the controls placed on a tabpage in a tab object (for example, from a user event on a sheet window containing the tab object, to

How do I add sound to my app?

Question: I have searched high and low and cannot seem to find a code example of how to add sound (attach a WAV file) to the opening of my application.

Application Versioning

Question: Is there an easy way for Powerbuilder developers to version their apps for releases (Major.Minor.Revision)? Is this built into PB? Answer: No, you have to do this manually with

Order by

Question: I can’t sort by the second-last digit of a number (for example, sorting the numbers 4491, 1195, and 1364 by the third digit). Answer: Try using the “RIGHT” function

Maximum SQL database size recommendations

Question: Are there specific recommendations for the maximum size of any database? For instance, does performance suffer if the database size is too large? Answer: Certainly, the amount of data

Timeouts on Socket Creation

Question: I am trying to open multiple sockets at differing IP addresses. Is there a way to make it so that the open socket call will wait for only two

Character Sets Available in SQL 6.5

Question: We’d like to find a table or listing of all the character sets available in SQL Server 6.5. Is there any way to get this from the Charset files