...i used integer because of memory allocation and speed, so if your numbers are going to be integers obviously this is the best choice but if your going to have decimals or radicals then use double.
Actually, that depends on whether you are using VB6 or Vb.Net (any VB version later than VB6).
In VB6, unless you are
extremely short on memory and dealing with
very large arrays, the
Long data type is almost always preferable to
Integer. That's because being the "native" data type on the 32 bit processor, it is actually very slightly faster to process, as less conversion steps are required. (On an old 8 or 16 bit processor, or a 64 bit processor, of focurse, things will be different.)
If you are using VB.Net then I believe they have renamed the data types, so possibly Integer will again be the better way to go.