You would first have to write a small program to feed the required values into the array. At the moment, when you read in the character 'F' you paste a specific image. Instead of an F, let's make it a number 1.
Note: Typing this straight into the forum - not DBPro so it may contain errors. Should point you in the right direction though.
Dim TileMap(5,3)
For Ny=1 To 3
For Nx=1 To 5
TileMap(Nx,Ny)=1
Next Nx
Next Ny
Save Array "MyMap01.dat",TileMap()
That creates and saves an array containing 3 rows of 5 1's. You could add to the program giving you the ability to select and paint the tiles, then save the array containing different patterns of numbers. This would be your level editor.
The other program would load the array in and create the level using the data in the array. Something like:
Dim TileMap(5,3)
Load Image "dirt tile_01.png",1
Load Image "Sand tile_01.png",2
Load Array "MyMap01.dat",TileMap()
For Ny=1 To 3
For Nx=1 To 5
Paste Image TileMap(Nx,Ny),Nx*32,Ny*32
Next Nx
Next Ny
You could have lots of different tile types - however many images you load in is how many different numbers you can have in the array.
TDK