Tip Bank

DevX

Prevent Timer Re-Entry

When using a timer control, it is important to prevent re-entry.This occurs when the processing in the _Timer event takes long enough to still be executing when the next _Timer

DevX

Passing Objects ByVal in VB

You can pass Object parameters to a sub ByVal just as you pass other parameters. But what is the difference between passing Objects ByVal and ByRef, since an object variable

DevX

Declaring Destructors Virtual

Writing basic classes needs no more definition from the programmer than just declaring a few member functions and variables. But, what if you needed to design a class that was

DevX

Remove a Character From a String

Use the following code: Public Function RemoveChar(ByVal str As String, ByVal strChar As String) As String ‘ Function: RemoveChar ‘ ‘ Desc: Extracting requested character from given string. Return value

DevX

A Way To Nest Multi-line Comments

You can use #ifdef & #endif to comment out a block of code that already has multi-line comments.For example: #ifdef COMMENTThis #ifdef removes all nested Code & Comments Code…/* Comments…*/

DevX

Understanding Linked Lists

A linked list is a dynamically created area where data can be stored. It contains certain algorithms for collecting data (alphabetically, numerically, etc.). This is like an array but an

DevX

Nested For Loop Optimization

You can declare the counter of even the most deeply nested loop as a ‘register’ variable. For example: for (int i = 0; i < 100; ++i){ for (register int