|
-
June 1st, 2009, 11:53 PM
#1
Something funny about constants
I have a program where I define:
Dim strMyLetter as String
Dim strTheChar as String
strTheChar = Chr(5) ' never changes
If strMyLetter = strTheChar Then....... works fine
Since I do big loop of character checking I thought I could changeout strTheChar instead to a constant & gain some program speed:
Const strTheChar as String = &H5
If strMyLetter = strTheChar Then....... now does not seem to work ?????
Is the "&H5" proper, or is something else going wrong?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|