
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
Let’s say you want to bind your listbox to a recordset, but you also want to display two fields concatenated together, such as “Jones, Barbara.” You can do this by
This quick and dirty encryption/decryption function takes whatever string you pass it, assigns it to a byte array, Xor’s each byte by a constant, then returns the string. The offsetting
The famous “Big Three Rule” says that if a class needs any of the Big Three member functions (copy constructor, assignment operator, and destructor), it needs them all. Generally, this
When using Java’s Remote Method Invocation (RMI), you may have defined a server class that extends java.rmi.server.UnicastRemoteObject. Extending UnicastRemoteObject makes your class capable of handling incoming calls, and is acceptable
The with() statement in JavaScript is identical to the With statement found in Visual Basic. Using with(), you can reduce object references and make your code more readable. Surprisingly, it
Did you know that you could write pure JavaScript in the address bar of Internet Explorer or Netscape? You can also write pure JavaScript in the Start/Run dialog in Windows.
Several small and specialized classes are preferred to a single bulky class that contains hundreds of member data members and member functions. More than once I’ve seen programmers extending a
The java.awt.Container class provides a number of different overloaded versions of the add() method which are used to add components to the container. The integer value specified with the add(Component,
You can boost your performance greatly by separating indexes and data onto different physical disks, which allows both the index and data to be accessed at the same time. However,
VB6 has introduced the Replace function, which replaces all occurrences of a substring with another substring. Although this function is useful in itself, you can also use it in unorthodox
Question: VB limits the number of controls on a form to 255. How do you get around this without dynamically creating and displaying them or frames that contain them? Basically,
Question: The computer lab where I’m taking a course has Visual Basic 6.0 now. Is there some way to save a VB 6.0 project so that it will be compatible
Question: I have written an application that uses both DAO and OLE calls. This is a form-based application that sits on top of a CAD package. Sometimes when a user
Question: I am building a security program for a high school in my area. I need a way to allow the teacher to select menus in programs she does not
Question: Is it possible to convert a VB 6 file to a VB 4 or 5 file? Answer: Sorry, I can’t tell you exactly how to do it. But I
Question: I need to store thumbnail graphics in an Access database (as an OLE object?) and be able to display the columns including the graphic in a table or grid.
Question: I’m trying to set and save user preferences for an application to a local file. The java.util.Properties class looks like what I want, but I don’t understand how to
Question: How well can Visual FoxPro be a front end for object-oriented databases? Are there any in particular that work well with VFP? Answer: I am not familiar with any
Question: I am using VC++ 5.0 to develop applications based on Windows 95. I want to get the HWND of the active window, which is receiving the keyboard or mouse
Question: Could you give me an exact definition of smart pointers, and how does a reference counting smart pointer work? Answer: I don’t believe there is an exact definition, since
Question: Can you have both versions 5 and 6 of FoxPro installed and make applications that work with either versions 5 or 6? I want to make an app for
Question: I’ve written a program using MFC that uses toolbars. I have an event that I want to change the state of some of the toolbar buttons (disable them, to
Question: I am attempting to use OLE between PB5 and Word97. I want to add two fields into the header of the document. I want to add the Page number
Question: How can I bring an open application to the foreground (that is, move the PowerBuilder app back a layer). Answer: To bring another application to the front, you will
Question: I have two Visual FoxPro applications (App1 and App2) running in the same computer. App2 runs every 30 minutes. When App2 runs, App1 is slow because App2 consumes lots
Question: How can I access the usercontrol’s left and top properties from within the user control? Answer: Certain standard properties such as top and left are provided to a control
Question: What is wrong with this picture? Private Sub cmdIXEDMtest_Click() Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim s As String Dim constr As String On Error
Question: I have several SQL Server scripts that either CREATE or RUN stored procedures in a SQL Server database. I need to run these files (which I have in .txt
Question: I have a table where after an import from an ASCII, I see some funny characters in some fields. After using asc(), I show that the characters where the
Question: I am using Visual FoxPro 5. Is it possible when exporting a table to a text file to have the field names exported on the first line of the
