Memory consumption by two dimensional array of strings and msflexgrid

62 Views Asked by At

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 ?

1

There are 1 best solutions below

1
Serenity On BEST ANSWER

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.