devxlogo

Tip Bank

The getenv() Function

The ANSI function getenv() returns the value of an environment variable. getenv() takes a C-string containing an environment variable and returns its value. In the following example, getenv() detects the

The ssize_t Typedef

The standard typedef name size_t represents a platform-defined unsigned integral data type. If you’re a Unix or Linux programmer, you may have come across another similar typedef, namely ssize_t. This

Embedding XML Data Islands in HTML

There are two ways to embed a data island into an HTML document. The first is inline, where the XML data structure is surrounded by the tags. 3345 Deepak Pant

Returning Multiple Recordsets to ASP

Question: What are my options when I need to send multiple recordsets back to ASP from a single call? Which is the best for performance? Answer: You can return multiple

Switching a Statement with a Char Array

Question: I can’t seem to get the switch statement to work with chars.For example: #include char answer[2];void main(){ cout > answer; switch(answer) { case ‘a’ : cout

DHTML & Search Engines

Question: Can you provide any insight on whether spider-based search engines, like AltaVista and Inktomi, can index DHTML text? Answer: The phrase “DHTML text” can mean different things to different

Balloon Labels

Question: How you to make balloon labels show when the user moves the mouse over an object? Answer: In VB6, most objects have a ToolTipText property that gives you that

Scan HTML Code for Data Extraction

Question: Is there a way (using VB) to load a Web page (without actually showing the page through a browser or otherwise) and then extract the HTML code for use

Sub Procedures or Functions in Visual Basic

Question: Is it possible to have subprocedures or subfunctions in Visual Basic?For example, in COM components we find properties being accessed using the following: myObject.Column(“myColumn”).Hide = True In this Column