how many characters can a long hold?
Printable View
how many characters can a long hold?
Welcome to VBForums :wave:
I guess you are getting something wrong, Long is a numerical variable it can hold integer values in the range of (- 2,147,483,468) - (+ 2,147,483,468). To store characters a String should be used!
Or treated as a raw set of bits there are 32 in a Long, so you could cram in 2 normal characters (16 bits), or 4 after ANSI conversion and loss of fidelity (8 bits each), or 8 Hex digits (4 bits each), etc.
Or the answer is infinite. The long can be a pointer to memory space that contains ~ characters