I love it loads just had another looksie.
A tip I can give you ( unless you allready know ) Nino dude is that if you have a function that isnt returning anything; use a sub instead mate and omit the return its not needed.
If you are using a function and wish to return a value, make sure that in both the declaration and routine of the function have what the value you are sending back. As you'll discover as I have, that in latest versions of FB you'll get errors.
For example:
Declare Function Value16( ByVal Number As Integer ) As Integer
Function Value16( ByVal Number As Integer ) As Integer
  Dim M16
   Â
  M16=Number*16
  Return M16
End Function
 Â
Btw I have seen a few people use m16=Function instead of the return m16.
Hope this is of some use dude,
Cheers - Clyde.