devxlogo

Tip Bank

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

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

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

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

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

VB Web Components and MTS Security

Question: We’ve developed a human resources system based on the principles advocated by Rockford Lhotka in VB6 Business Objects. We used a SQL 7.0 database and stored procedures in conjunction

Servlets vs. Applets

Question: We currently use applets to allow users to access a database,but are looking for ways to improve performance. Is a servlet-basedsolution faster than an applet-based solution? Answer: This will

Backspaces and Form Focus

Question: I have two questions: When using the Backspace key to delete content in a text box, the control is passed to the preceding text box once all data is