
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.
Suppose you want to assign the contents of a two-dimensional array to another two-dimensional array: int weekly_hours[5][5]; // source int another_array[5][5]; // destination You can use a nested loop to
The C++ standard does not guarantee any construction order among static objects defined in different translation units. To demonstrate the effect of this restriction, consider this small application: In a
Question: Is there a way to force a page to load from the server rather than from the cache? The META refresh and onLoad=reload() both just send the page into
Question: I have a shopping cart on my e-commerce site. When people submit their orders, instead of getting an e-mail with their order in it, I want that information to
Question: I encountered syntax in a JavaScript program that I recognized from C/C++ syntax as well. The code was something to the effect of xxxxxx?yyyyyyy:zzzzz. I am fairly sure that
Question: If you have a variable with a numeric value represented as a string, how do you convert it to a numeric type in order to use it in a
Question: I created an ASP page through Microsoft Access. When I click the hyperlink that runs this page, I get nothing back from the query that is run. It’s almost
Question: I used Visual Basic 6 to create an ActiveX control (student.ocx), which the client downloads, and an ActiveX DLL (Math.DLL), which I want to remain on the server. Student.ocx
The class java.net.InetAddress represents an Internet Protocol (IP) address. It has a static method, getLocalHost(), that you can use to obtain an instance of java.net.InetAddress based on your local machine’s
You can use java.net.ServerSocket class to identify a remote machine that is accessing your server. A server socket waits for requests over a network. It then can perform operations based
Question: We are currently using PowerBuilder 6.5. What is the recommended maximum pbl size? Answer: There is no recommended size. In the old days before PowerBuilder 4 there was a
Question: What code do I have to write to get my toolbar to show text? Answer: The toolbar text and other general toolbar attributes are located on the Application object.
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
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
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
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
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
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
Variable-length character data types are 255 bytes long in SQL Server 6.5. SQL Server 7.0 extends Varchar to 8000 bytes long. Until SQL Server 6.5, text data type was used
Binary Large Objects (BLOBs) are stored in SQL Server as either text or image datatypes. The SQL Server maintains a pointer to the BLOB data. Thus, BLOB data is not
Coding static SQL in an Active Server Page (ASP) is perhaps the easiest way to provide dynamic data content in Web pages. However, you should try avoiding this; instead use
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
A MTS component in VB should be an ActiveX DLL project, because MTS components by definition can only be ActiveX DLLs (and not EXEs). In order to work with MTS,
A lot of Web pages have a last modified date at the bottom of the page. Although this is a feature easily managed by changing the HTML, a better approach
Do you ever wonder what the “Browse” button is for in your VID Find dialog? Press it and you will “find” out. It is actually a very nifty little feature
Javascript Arrays are quite versatile. One of its built-in features is the sort method. When an array is populated, you can simply call the sort method to sort by text.
The Bulk Copy Program (BCP) command-line utility is used to move data between an existing database table and file stored in ASCII. Running BCP on the same machine as SQL
Each time I work on a Web project, there is a page or two where I have to build a select box control where the options are derived from some
BEGIN-END lets you group T-SQL statements and execute multiple statements as a result of a conditional test. This helps in grouping a series of SQL statements so that control-of-flow language,
The term “aggregate” is used in the ANSI standard to denote an array or a class with no constructors, no private or protected data members, no base classes, and no
