Pete,
Not that you'd need to know this knowing as I do that you don't use VB but I thought I'd share this tidbit of information with you concerning the # trailing the numbers in VB such as 360#.
This is straight from the MSDN documentation:
"Double (double-precision floating-point) variables are stored as IEEE 64-bit (8-byte) floating-point numbers ranging in value from -1.79769313486232 E308 to -4.94065645841247 E-324 for negative values and from 4.94065645841247 E-324 to 1.79769313486232 E308 for positive values. The type-declaration character for Double is the number sign (#)."
So essentially the # symbol defines a numeric value as being a double data-type variable. There are several different ways to define a value as being a certain type of variable as I'm sure you are aware. The method I use most often is by explicitly declaring a variable as a specific variable type either in the application globals section, the form globals, or the procedure globals sections.
This is just my two cents (or what ever your local currency is)
Regards,
Joshua Robertson (creator of FS Real Time)
3D Softworks Design Studios
http://www.3dsoftworks.net