On Sat, 26 Jun 2004 09:45:48 +1200, "WindAndWaves" <ac****@ngaru.com>
wrote:
Rather than using:
global const CUSTOMER_TYPE_LEAD = 1
global const CUSTOMER_TYPE_CLIENT = 2
global const CUSTOMER_TYPE_OUTOFBUSINESS = 3
you can use:
enum enumCustomerType
Lead=1
Client=2
OutOfBusiness=3
end enum
So you use it for related information. Addl advantage is better
intellisense, e.g. if you have a function that takes an
enumCustomerType as an argument.
Const still preferred for unrelated info:
global const APPNAME = "MyApplication"
global const FILES_DEFAULT_FOLDER = "c:\program files\my
application\data"
-Tom.
Can anyone tell me when to use ENUM and when to use Public Const?
TIA
- Nicolaas