Tip Bank

DevX - Software Development Resource

Getting All Files in a Directory

Question: How do I loop through a window’s subdirectory and get all the files one by one? I need to save each file in a specific format before saving it

DevX - Software Development Resource

Passing a Variable Between Two Applications

Question: In my first application, I want to use a global variable in my second application. How can I do this? Does PowerBuilder offer any method to exchange messages between

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

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