fieldnames(s)

Returns an array with all member names of structure s.


See also fieldremove fieldset fieldvalues 


Example


s.a=2

2

s.b="Hello there!"

"Hello there!"

s.name = "Test"

"Test"

s.arr = (3,3,3,6)

( 3 3 3 6 )

s

a : 2

b : "Hello there!"

name : "Test"

arr : 3, 3, 3, 6

a = fieldnames(s)

( "a" "b" "name" "arr" )