Tip Bank

DevX - Software Development Resource

Share Variables Between Multiple Apps

Sometimes it’s necessary to share variables between multiple instances of an application. For example, you might want to share a database connection. Here’s how: Create an ActiveX EXE with an

DevX - Software Development Resource

Dynamic Content Using Radio Buttons

Question: I wrote JavaScript code that displays different text depending on the radio button clicked. I used innerHTML to display text, which works fine on Internet Explorer 5 but not

DevX - Software Development Resource

Enabling Sharing Tab

Question: Can you please tell me how I can enable the sharing tab when sharing local drives? I’m using an NT Workstation 4.0 and when I’m logged on as an

DevX - Software Development Resource

Append a NodeList to a Node

Question: Is it possible to append all the elements of a nodelist to a node as children without using a for loop? I want to overcome the performance problems incurred

DevX - Software Development Resource

Disabling the Command Window

Question: I have compiled a program as an .APP file. When I run this file from VFP 6, I would like to disable the close button until the user clicks

DevX - Software Development Resource

Direct Append from Excel Files

Question: I tried to use APPEND FROM any.xls TYPE XLS and it failed on some numerics. Instead of real numbers I received zeros (0). Is it a bug? What’s the

DevX - Software Development Resource

Unexpected Socket Close

Question: How do you determine when a client has closed its socket, so that aserver can cease to wait for messages from that client? Answer: When a socket endpoint closes

DevX - Software Development Resource

Method Storage

Question: Does each instance of a class have its own copies of instance methodsin the same way it has its own copies of instance variables? Answer: Every time you instantiate

DevX - Software Development Resource

Serialization to Byte Array

Question: How can I convert a class instance to a byte array and thensubsequently reconstruct the original class from the byte array? Answer: Java’s Object Serialization API allows you to