01-19-2007, 06:57 PM
plz help me to know he differences between the following statements
k = Chr(KeyAscii) Like "[0-9.]"
k = Not (Chr(KeyAscii) Like "[0-9 -]")
k = Chr(KeyAscii) Like "[0-9/]"
Opening and reading MSDN sounds a minimum before posting .
A part of what you would have found :
Kind of match Pattern Match (returns True) No match (returns False)
Multiple characters a*a aa, aBa, aBBBa aBC
*ab* abc, AABB, Xab aZb, bac
Special character a a a*a aaa
Multiple characters ab* abcdefg, abc cab, aab
Single character a?a aaa, a3a, aBa aBBBa
Single digit a#a a0a, a1a, a2a aaa, a10a
Range of characters [a-z] f, p, j 2, &
Outside a range [!a-z] 9, &, % b, a
Not a digit [!0-9] A, a, &, ~ 0, 1, 9
Combined a[!b-m]# An9, az0, a99 abc, aj0