Can you zip your Image with your code source (SBP file), it'll help us a lot...
Why do you want an example with "Dim"? Dim is for declare an array or a variable in
private (not available from an other module, for do it use Public but not Dim):
Dim example(0) As String
Dim example(4096) As Byte
Dim num As Integer
...
You can read this page:
Dim, instruction (Visual Basic) but it's not really the same Syntax...
Edit:
"Public" syntax is available only on version 6.90 and newer...
Edit:
Declares regular, array and structure variables.
Syntax: Dim [Type (Fields)] Variable Name [(Array length)] [As Data Type]
Array dimension can be up to three.
You can declare many variables on one row.
Example: Dim Counter(20), I, a As String, x(10,10,10), Matrix(10,10) as Number
Note that the type definition affects all variables preceding the type (and without a type of their own).
In the above example, the variable Counter, I and a are declared as Strings and x and Matrix are Numbers.
Available in Basic4PPC Help file...