01-17-2006, 05:14 PM
Hey Guys... Im having a problem with this code I also wrote... It says "ITEM SHARED" and it highlights "ASC"...
Here is the code:
Here is the code:
Code:
CLS
'Start of Declarations
DIM num AS INTEGER
DIM CHR AS STRING
DIM ASC AS INTEGER
DIM num1 AS STRING
'End of Declarations
start:
PRINT "ASCII code -- ASCII Character & ASCII Character -- ASCII Code Converter"
PRINT
PRINT "1) ASCII code -- ASCII Character"
PRINT
PRINT "2) ASCII Character -- ASCII code"
PRINT
INPUT "Enter your choice"; selection
SELECT CASE selection
CASE 1
CLS
PRINT "ASCII code -- ASCII Character"
PRINT
INPUT "Enter ASCII code"; num
PRINT
CHR = CHR$(num)
PRINT "The ASCII Character is:"; CHR
CASE 2
CLS
PRINT "ASCII Character -- ASCII Code Converter"
PRINT
INPUT "Enter ASCII Character"; num1
PRINT
ASC = ASC$(num1)
PRINT "The ASCII Code is:"; num1
CASE ELSE
PRINT "Invalid Selection"
GOTO start
END SELECT[/code]
img]http://img213.imageshack.us/img213/6104/sig1jb.gif[/img]