December 1, 1999

Create a Link to the Previous Page Using ASP

With pages that are generated dynamically, you can’t provide a hardcoded link back to the previous page. However, ASP often provides you with the name of the page that contained the jump to the current page. With Request.ServerVariables(“HTTP_REFERER”) you can create the link on the fly. Keep in mind that

Drag HTML Code Fragments to VID’s Toolbox

The best way to avoid syntax errors and unnecessary typing is to store frequently used code in the Visual InterDev toolbox. It takes a few seconds and it saves hours of annoyance. For example, I can never remember the exact syntax of the Include statement. Rather that searching through old

Add Full-Text Search of an Access Database to ASP Pages

Although SQL Server 7 is the more robust and scalable database for full-text searching, many developers still use Microsoft Access for less-demanding database applications. You can search an Access database if you concatenate the field names in your query. For example, in the following ASP code, the SQL query combines

Create Line Breaks in the VID Label Object

The Visual InterDev label script object is a quick way to display text on your Web pages. Trouble is, the data from your recordset may contain line breaks that the label object ignores. The trick to passing line breaks to your label is to use the VBScript Replace() function. It

Returning a Value

Question: When executing a system call, how can I return a value back? My program will already return a value back. Example: String blah = system(“some command”); Is this correct? Answer: No, the system() function returns a code that indicates whether the invocation of the command shell was successful (0

All About Bool.h

Question: In my computer science class our teacher wants us to find information about Bool.h, which is supposedly in C++. No one in my class can find anything. Also, we need to find information about George Bool, the guy who made it. Do you know anything? Or maybe a place

Array Initialization

Question: I’ve always used memset() in C to do char array initialization, but in C++ is it normal/acceptable practice to initialize a char array during declaration using this syntax? char Temp[10] = {0}; Answer: In C++ you normally don’t use arrays in the first place. You use a container class

Circular Pointers

Question: I’m trying to make two classes point to one another. I know the syntax is weird, but it’s just to illustrate: class x{ y* ptry; }class y{ x* ptrx; } It won’t compile. I get the error “missing storage class.” How do I get around this? Answer: You need

Array of Objects

Question: I have two questions. How do I pass an array of objects as an argument? How do I fix an error like “do or while loops are not expanded inline”? Answer: To answer your first question: you can either pass a vector of objects by reference, or a pointer

No more posts to show