Tip Bank

DevX - Software Development Resource

DataWindow Initial Values

Question: How can I use global variables to set initial values in a DataWindow? I have tried to use “Rows..Column Specs..” but all it displays is the name of the

DevX - Software Development Resource

Getting the Toolbar to Show Text

Question: What code do I have to write to get my toolbar to show text? Answer: The toolbar text and other general toolbar attributes are located on the Application object.

DevX - Software Development Resource

Recommended Maximum Library Size

Question: We are currently using PowerBuilder 6.5. What is the recommended maximum pbl size? Answer: There is no recommended size. In the old days before PowerBuilder 4 there was a

DevX - Software Development Resource

Alternate Confirm Message Box

Question: Can I make a confirm message box with “Yes” and “No” as opposed to “OK” and “Cancel”? Answer: Unfortunately, you’re out of luck. As you’ve found out, the JavaScript

DevX - Software Development Resource

Use DatagramSocket to See Who’s Calling Your Server

You can use java.net.DatagramSocket class to identify a remote machine that is accessing your server. The class java.net.DatagramSocket represents a socket for sending and receiving datagram packets. A datagram socket

DevX - Software Development Resource

Your Options With Sockets

JDK 1.1 offers enhanced control over a socket’s behavior through some socket options. These options are: SO_TIMEOUT, which you can access through accessor methods: public synchronized int getSoTimeout() throws SocketException