Two dimensional array of string takes 2 times more memory than msflexgrid with same text, how? Is there any other efficient method in vb6 to save string ?
Asked
Active
Viewed 56 times
1 Answers
1
All windows in VB are ANSI (8 bit). VB is Unicode (16 bit) internally.
You can save your strings as a byte array. Byte arrays can contain ANSI or Unicode.

Serenity
- 46
- 2
-
Actually a String can also be used to hold ANSI data with no problem at all. There is no more effort involved than when managing the same thing contained in Byte arrays. Caution though, reverting to ANSI for persisted data can lead to nasty Locale Hell bugs for any codepoints beyond the 0 to 127 (7-bit ASCII) range no matter how you store it. – Bob77 Mar 12 '15 at 15:41