Variables are not just very useful but they are essentially needed in every program. Basic4GL's variables have to be declared with dim no matter what type of variable you are using. The different variables types are as such:
- integer e.g dim x = 1
- float e.g dim x# = 1.01
- string e.g dim string$ = "Hello World
So lets use some variables and print them to the screen.
dim a = 1
dim b# = 1.014
dim c$ = "Hello Mate"
ok so thats the basic part of using variables. lest use maths with variables aye. This is a bit of fun.
dim a = 1+7
dim b = 9
dim c = a + b
Well thats the addition used. You can experiment on what you have learned in this tutorial as you have completed it.
Tell me what other tutorials for Basic4GL you would like me to make for you by emailing me at firstname.lastname@example.org