devxlogo

Tip Bank

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

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

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

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

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

Formatting Date and Time Values

VBScript has a built in function that allows you to convert a general date (MM/DD/YY HH:MM:SS AM/PM) into numerous other formats. The other formats are long date, short date, long