ars_GetField(ctrl, schema, id)
id is the numerical Field Id.
See also ars_GetListField,
ars_GetFieldByName,
and ars_GetFieldTable
Example:
($field = ars_GetField($c, "User", 8)) || die $arr_errstr;
print $field->{"helpText"};
Example of how to retrieve enumerated field labels (e.g. the Status field
labels):
($fh = ars_GetField($c, $S, $f{'Status'})) ||
die "GetField: $ars_errstr (no Status field in this schema?)";
if($fh->{dataType} !~ /enum/i) { # ignore case of "enum"
die "'Status' field is not an ENUM.\n";
}
@enumvals = @{$fh->{limit}};
print "Status values: ".join(',', @enumvals)."\n";
Last changes to this page 11 September 1998 by Jeff Murphy
© J.C.Murphy, J.W.Murphy 1997 arsperl@arsperl.org