%%%%%%%%%%%%%%%%%%%%%%%%%% define structContainsField() %%%%%%%%%%%%%%%%%%%%%%%%%% %H structContainsField [Mh] %H %H SYNOPSIS %H tests wheter a structure contains a field %H %H USAGE %H Char_Type contains = structContainsField(Struct_Type s, String_Type fieldname); %H %H DESCRIPTION %H contains = arrayContains(get_struct_field_names(s), fieldname); %H However, please use the S-Lang function struct_field_exists. %H %H SEE ALSO %H arrayContains [Mh], get_struct_field_names [Mh], struct_contains_field %H { variable s, fieldname; switch(_NARGS) { case 2: (s, fieldname) = (); } { help(_function_name()); return; } message("structContainsField: use struct_field_exists"); return arrayContains(get_struct_field_names(s), fieldname); }