length
From DavinciWiki
|
Contents: Description, Arguments, Usage, Examples, Related Functions Supported Under Version: >1.69 Current Davinci Version: 2.10 64-bit Safe: Yes
Description Determine the number of elements in an object
Arguments and Return Values Arguments: A davinci object Return Value: An integer
Usage Syntax: length(object) length() will return the number of lines in a text buffer, the number of elements in an array or structure.
Examples dv> a
3x3x1 array of float, bsq format [36 bytes]
0.558329 0.100168 0.899324
0.805147 0.930234 0.535199
0.938504 0.0242239 0.597536
dv> length(a)
9
dv> b
Text Buffer with 5 lines of text
1: string line 1
2: string line 2
3: string line 3
4: string line 4
5: string line 5
dv> length(b)
5
|
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Core Changes Modified On: 07-06-2009 |