Want to have a constant array

Spica

Registered User.
Local time
Today, 21:44
Joined
Aug 3, 2004
Messages
13
I have a function that translates HTML letter-codes into the real letters. E.g. Æ translates into Æ. For this I want to have a constant array with all the letters.

Like this (this code doesn't work):
Code:
const HTMLCodes(32 to 126) as String = (" ", "!", """", "#", "$", "%", ... )

Then I could get the letters:
Code:
myLetter = HTMLCodes(34)

Does anyone know how define a constant array?
 
Spica,

You could put them in a table, then look them up.

But Access already provides the Chr() and Asc() functions. Those will
do what you want. See Access Help for examples.

Wayne
 
Thanks. That was much easier!
 

Users who are viewing this thread

Back
Top Bottom