Re: [Vala] How to obtain number of elements in array



Hi,

On Sun, 2008-04-27 at 23:16 +0200, Jaap A. Haitsma wrote:
How do I obtain that the following string array has two elements

      const string[] x = {
              "string1",
              "string2"
      };      
[...]
So something like

num = x.length();

        num = x.length;

should work fine.

Jürg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]