Error Lookup

  • Thread starter Thread starter Stuart Ferguson
  • Start date Start date
S

Stuart Ferguson

I require the functionality of an error lookup (storing the err number
and a description) in some software which i am working on and wud use an
array normally but i have a small problem in that the error codes are
non sequential eg 0,5,27,28 are the first four error codes.

I would like to be able to write a function that given the error code
can return the description.

Any ideas on the best way to do this without any database access

Thanks

Stuart
 
Tested my solution with a hash table and it works :)

However are there any other methods to perform this and is there any
benifit to using a hash table over using any other methods ?

Stuart
 
Back
Top