Forum Discussion

m_essaid's avatar
m_essaid
Valued Contributor
10 years ago

delphiScript... dynamic array (or open array)

Hi,   I need to declare a dynamic array because i'll know only after its size (it's a ComboBox.wItemCount property that will give me the size). I can't declare only : t: array of string;   Does...
  • HKosova's avatar
    10 years ago

    Here you are:

     

    procedure Test;
    var arr;
    begin
    // ...

    arr := CreateVariantArray(0 {lowest index}, ComboBox.wItemCount-1 {highest index});

    end;