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 MULTIPLE CHOICE & SUB PROCEDURES CLASS VII

1) ELSEIF- When there are multiple choices and the user has to select one, the ELSEIF statement can be used. Example:- In the above program, program will determine greatest number among three entered number. Remember, while entering numbers , enter three different  numbers. Output:- 2) SELECT CASE:-  SELECT CASE , is used to automatically determine a program decision by checking the value of a variable. Syntax: - SELECT CASE variable CASE comparison value :  execution code : : : CASE ELSE END SELECT Example:- 1 We will make a program to print weekly day, by entering corresponding number.   In the above program, program will print day after entering corresponding day number. Output:-  Example:- 2   Output:-  In the above program we will enter character & program will show you related months staring from the entered character.   LAB ACTIVITY 1. Write Programs for the following problems. ...