Author Archives: Sachin Kumar

Visual Basic 6 Programming Conventions

The conventions are very handy while working in a team. So following are the prefixes of various types used to declare a variable name so that its properties can be identified easily. Variable Prefixes: Variable scope prefix conventions.These must be first in the name of variable.  Scope  Prefix  Global  g  Module-level or form-level  m  Local

Read More

The Parts of A Visual Basic 6 Project

Projects can become quite advanced in Visual Basic, even containing sub-projects of different types. From a programming point of view, however, standard Visual Basic projects usually contain just three types of items: global items, forms, and modules. Forms: They are the templates you base windows on. Besides standard forms, Visual Basic also supports Multiple Document Interface

Read More

Types of Variables in Visual Basic 6

The possible variable types and their ranges :   Variable type Bytes of Storage Range Boolean 1 True or False Byte 1 0 to 255 Currency 8 -922,337,203,685,477.5808 to 922,337,203,685,477.5807 Date 8 1 January 100 to 31 December 9999 and times from 0:00:00 to 23:59:59 Decimal 12 -79,228,162,514,264,337,593,543,950,335 to 79,228,162,514,264,337,593,543,950,335 Double 8 -1.79769313486232E08 to 4.94065645841247E-324

Read More

General Overview Of UNIX System

First UNIX system was developed in 1969 and ran on systems from microprocessors to mainframes and provided a common execution environment across them. The system was divided into two parts : Programs and services: It is the part readily apparent to users e.g. shell, mail text editor etc. Operating System: That supports above-mentioned programs and service.

Read More

Ensure Main Method Exit at the End

We can achieve this by isAlive() and join() methods of Thread class. isAlive() is not great at doing this task. So, we will be using join() method. Threadd class — implements Runnable :  class Threadd implements Runnable{Thread t;String name; Threadd(){name = “how”;t = new Thread(this,name);System.out.println(“This is thread”);t.start();} public void run() {for(int i=0;i<20;i++){System.out.println(“This is run method”);try{Thread.sleep(100);}catch(InterruptedException

Read More

Things to note about Structure in C plus plus (C++)

Initializing structure structure_name variable_name = {value1,value2,…,valueN}; Initializing nested structure structure_name variable_name = { {value1, value2},{value3,value4}}; A structure can be nested up to any depth in theory. Structure can hold data and functions (In c they can only hold data) An enum declaration defines the set of all names that will be permissible values of the

Read More