Tip Bank

DevX - Software Development Resource

Implementing Multilevel Ranking in T-SQL

You might have a table with different PEOs for each Company ID. For example: Table name : tblRankingCid peo———– ———–1 200003311 200006301 200009301 200012312 200003312 200006302 200009302 20001231 To give

DevX - Software Development Resource

C++ Smart Pointers

C++ smart pointers are the idea of using a selector to access a class. This gives the class writer an option to control access to class members and function. For

DevX - Software Development Resource

Get Value from the Control Irrespective of Control Type

This code shows how to get value from the control irrespective of the control type used in the client side Javascript. function GetValue(ControlName,FormName){var Control=document.forms[FormName].elements[ControlName]alert(Control.type) switch(Control.type) { case “select-one”: case “select-multiple”:

DevX - Software Development Resource

Using Count(*)

Using Count(*) is generally better than using Count() with a specific column name, because it gives the query engine the flexibility to find out the row count any way it

DevX - Software Development Resource

How to Make a Private Member Public

You can make a privately inherited member public by specifying its access modifier in the derived class. For example: #include class base{ public: int a; int b; base() { a=10;