Skip to main content

STRING HANDLING IN QBASIC CLASS VII

String in QBASIC is used to store string values.  In previous chapter we have learnt to store and work with numeric values. In this lesson we will learn to manipulate string / alphanumeric values.
As we know that for storing string value in memory, we need to declare the variable as string. For declaring variable as string we use $ sign infront of variable name.
Example n$="Raja" 
Here, we have declared the variable with name n and for declaring it as string we put $ sign with it.
Always remember that string value always enclosed in double quote. As we seen in the example, we have provided the value Raja.

Comments

Popular posts from this blog

QBASIC STATEMENTS CLASS-VI

CONTROL STATEMENT-    The Control Statements are used for controlling the Execution of the program. We use control statements by two way 1) Unconditionally & 2) Conditionally GOTO STATEMENT- Unconditionally, we use GOTO statement. The Goto Statement is used for transferring the control to the other location for example- if you wants to transfer the control to the other place of the program then we can use the goto statement. When we use goto Statement then we have to supply a name along with a Goto Statement on which Control is transferred. The Name is user choice and Name must be defined with the help of a Colon. When Compiler transfers the Control of program to the Goto statement then statements of Goto block will be Executed and The Name of Goto Statements block is also called as the Label Name. GOTO statement uses line number or label Here, We will understand by an example CLS 1 PRINT " MY NAME IS  AMIT " :GOTO ABC 2 PRINT " I LI...

My Profile....

Mr. Shravan Kumar (IT Engineer) " Success is not final; failure is not fatal: It is the courage to continue that counts." It's pleasure to say that IT field is improving day by day and minute by minute. Today, Everything controlled and managed by computer. Businesses and companies use a computer to do marketing and business planning, they use a computer to record customer data, they use a computer to manage goods and services etc. Computer with an internet connection is really important for businesses and individuals. You can understand and analyze the importance of computer by seeing a revolution in offline and online business, online education, online business, online communication and internet banking. To store, access, manipulate, calculate, analyze data and information we use hardware devices and software application. Schools and colleges around the world are using computer and internet technologies to teach students digitally and creatively with...

QBASIC ARRAY & GRAPHICS CLASS VIII

ARRAY in QBASIC  is used to store sequential values of same kind.We can use array instead of using number of separate variables. Using different variables to store values will makes our program lengthy and complicated. So, in such cases QBASIC provides us facility to store values of same type. So, Basically there are two types of array in QBASIC: 1) SINGLE DIMENSIONAL ARRAY 2) DOUBLE / TWO DIMENSIONAL ARRAY  SINGLE DIMENSIONAL ARRAY Declaration:-                        We use DIM keyword to declare array. Syntax: DIM  (number of items). Example:- DIM A(10) The above will open 10 dimensions in memory to store 10 numbers. i.e.    1              2           3           4           5      ...