Jump to content

Array length: Difference between revisions

→‎{{header|FutureBasic}}: Added 'len' keyword option
(→‎{{header|FutureBasic}}: Added 'len' keyword option)
Line 1,534:
HandleEvents
</syntaxhighlight>
 
We can also use FB's len() function to get the length of an array.
<syntaxhighlight lang="futurebasic">
void local fn DoIt
CFArrayRef array = @[@"apple",@"orange",@"cherry",@"grape",@"lemon"]
print len(array)
end fn
 
fn DoIt
 
HandleEvents
</syntaxhighlight>
 
{{out}}
<pre>
416

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.