Declaring variables is a bit different in DBP and you can do it in a number of ways.
The simplest would be:
String:
text$ = "Hello World"
Integer:
counter = 3
Float:
velocity# = 2.5
But of course, you can also declare them as so:
counter as integer
text as string
velocity as float
answer as boolean
To make a global variable:
global counter
There's also 'user defined types', which is a little more complicated, but I like them as a means of organising my variables, if you're used to Object Orientated Programming in C++, UDTs look a little similar.
You might declare one like:
type character
name as string
filename as string
number as integer
health as integer
endtype
Then you'd attach that type to a variable:
player as character
Then you could do:
player.name = "Bob"
player.filename = "bob.x"
player.number = 1
player.health = 100
load object player.filename, player.number
If you're familiar with arrays, you can declare them as so:
dim object(10)
object(1) = 4
UDTs can also be treated as arrays:
dim player(3) as character
player(1).name = "Bob"
player(2).name = "Steve"
player(3).name = "Lord Beefington Eqsuire"
Obviously you can keep it as simple as you want, but there's a quick run through of the types of variable declarations.