Ord(Ch1) + Ord(Ch2) shl 8 + Ord(Ch3) shl 16 + Ord(Ch4) shl 24
where
Ch1
is the rightmost (last) character and
Ch4
is the leftmost (first) character. If the string is shorter than four
characters, the leftmost characters are assumed to be zero. The following table shows string constants and their
numeric values.
Dostları ilə paylaş: