get struct key

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Returns the name of a structure element at the given index

Arguments and Return Values

Arguments: A struct and an index number

Return Value: A string name of the struct element

Usage

Syntax: get_struct_key(object = STRUCT, index = INT)

get_struct_key() returns the name of the structure element at the specified (1-based) index. If the element does not have a name attached to it, an empty string is returned.

Examples

dv> s
struct, 4 elements
    ele1: 12345
    ele2: 67890
    ele3: 11121
    ele4: 31415
dv> get_struct_key(s,index=3)
"ele3"

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Recent Core Changes

Modified On: 07-06-2009

Personal tools