|
fname
| Format:
fname (object-field) |
Purpose:
Returns the name of an object field in the form of a string.
Return Values:
Returns a string denoting the name of the object field, or null
if the field has no name or does not exist.
Example 1:
| heitml input: | resulting output:
|
| <let x=emptytuple; x.hallo="test"; ? fname(x[0])> | hallo |
| <let x=emptytuple; x.hallo="test"; ? fname(x.hallo)> | hallo |
| <let x=array(2); x[0]="a"; x[1]="b"; ? fname(x[1]) "Nn"> | null |
| <? fname(ff.x.y.z) "Nn"> | null |
Tip:
The fname() function is useful in deciphering the structure of an unknown object, or when you want to print the data field names along with their associated values (as in the following example).
Example 2:
| heitml input: | resulting output:
|
| <let x=emptytuple; x.hallo="test"><b> <? fname(x[0])>:</b> <? x[0]> | hallo: test |
See Also:
findex().
This page was dynamically generated by
heitml
© 1996-2009 H.E.I. All Rights Reserved
|