Posted by: programmervb on: May 20, 2008
Let’s start wuth this
CLS
Let variable=7
?Variable
ps:
Remember that this program will not print the word variable, it will print whatever letters or numbers have been assigned to that variable.
and next a new program that adds two variables
cls
first=4
second=6
third=first + second
?first;”+”second;”=”;third
Posted by: programmervb on: May 13, 2008
DEFINT A-Z
TYPE highscores ‘type for highscores
rank AS STRING * 3 ‘rank
dat AS STRING * 8 ‘date
nam AS STRING * 25 ‘name
lines AS STRING * 4 ‘lines cleared
num AS STRING * 6 ‘Score
END TYPE
TYPE hues ‘define the type for hues
red AS INTEGER ‘red component
grn AS INTEGER ‘green component
blu AS INTEGER ‘blue component
END TYPE
DECLARE SUB P3×5Num (x, [...]
Posted by: programmervb on: May 12, 2008
DECLARE SUB FELD (X%, Y%, XX%, YY%, FARBEN%, HFARBE%, DFARBE%)
DECLARE SUB TITLE ()
DECLARE SUB LOESCHEN (STEIN%, BREITE!, HOEHE!)
DECLARE SUB HIGHSCORE (PUNKTE%, NAME$, LH%)
DECLARE SUB FELT2 (X%, Y%, XX%, YY%, FARBEN%)
DECLARE SUB Pfont (text$, X%, Y%, FARBE%, DURCHS%)
DECLARE SUB REIHECHECK (PUNKTE%, LINIE%)
DECLARE SUB FELT (X%, Y%, XX%, YY%, FARBEN%, HFARBE%, DFARBE%)
TYPE POSI
A AS STRING * 10
B [...]