stringmemoryvb6msflexgrid

Memory consumption by two dimensional array of strings and msflexgrid


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 ?


Solution

  • 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.