View Full Version : Is # a reserve character?


Susan Allen Wyoming
03-23-2001, 12:57 PM
Because I am a garden center, we use things like Feet and inches. I know that apostraphes are reserve characters but what about Pound signs "#"?

Thanks

Sue

Susan Allen Wyoming
03-23-2001, 12:59 PM
PS - - Why is the folder red? This question isn't all that urgent?

Sue

AlanS
03-23-2001, 01:31 PM
The pound sign is a "type declaration character", which is a reserved character that may be appended to a variable name to implicitly declare its type (in this case, Double). So, you should probably avoid using it in other contexts in your code, except within literal string values.

The red folder indicates that either the topic or at least one reply to it have been posted since the last time you logged in.

Peter D
03-23-2001, 01:32 PM
Yes, "#" is a reserved character. It is used to denote date fields, as in #3/23/01#.

It's best to not use it in variable names.

Hope this helps,

Peter De Baets
Peter's Software - MS Access shareware and freeware http://www.peterssoftware.com

AlanS
03-23-2001, 01:34 PM
Thanks, Peter. I forgot about that other use for the pound character.