devxlogo

Tip Bank

Run Time Object / Control Management

Question: Can I write statements to add/delete the control objects like command buttonsat runtime like we do in java C++ ? Iam under the assumption that once we populate a

Nested Quotes and JavaScript

Question: I am trying to use document.writeln to write a table onto a floating menu bar. Part of the table cell’s events is Java code. When it reaches the semicolons

Abstract Classes

Question: Can I instantiate an abstract class? Answer: No, you cannot instantiate an abstract class. However, you can declare a pointer or a reference to it: class Abs{public: virtual void

Always Use Option Explicit

You should always use Option Explicit statement in your .asp file. Thisstatement will enforce that you explicitly declare all the variables in thescript. The whole problem: VBScript allows you to

Always Prefer to Use Local Variables

You should always prefer to use Local variables. Local variables reside within functions and subs. They have local scope and limited lifetime. These variables are compiled into numeric references and

Display Greeting Message

Here is a simple way by which you can display a greeting message to a user at the time of login.There are certain scenarios where you can use thisfeature to

How to Instantiate a Template Correctly

The type that a template takes as an argument must have external linkage. This means that you cannot instantiate a template with a locally-declared type: int main(){ struct S {