Re: [Vala] How to obtain number of elements in array
- From: Jürg Billeter <j bitron ch>
- To: "Jaap A. Haitsma" <jaap haitsma org>
- Cc: vala-list gnome org
- Subject: Re: [Vala] How to obtain number of elements in array
- Date: Sun, 27 Apr 2008 23:26:19 +0200
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]