How to convert string to ulong? - page 2

 
zahid Ali #:

This code defines two functions, StringToUlong for converting a string to an unsigned long integer, and UlongToString for converting an unsigned long integer to a string. You can use these functions to store ticket numbers as strings and convert them back to ulong when needed.

That is quite inefficient.

Storing the values as string, or VARCHAR will make the indexing process much harder for the database. You loose a lot of performance this way.

I don't suggest this.
 
I
zahid Ali #:

This code defines two functions, StringToUlong for converting a string to an unsigned long integer, and UlongToString for converting an unsigned long integer to a string. You can use these functions to store ticket numbers as strings and convert them back to ulong when needed.

I apologies  for the mistake!

I understand the error in code and will rectify.