GetAllFieldValues

Description

Returns an array of FieldInfo objects corresponding to all of the Entity object's fields. The FieldInfo objects are arranged in no particular order.

Syntax

VBScript


entity.GetAllFieldValues 

Perl


$entity->GetAllFieldValues(); 
Identifier
Description
entity
An Entity object representing a user data record. Inside a hook, if you omit this part of the syntax, the Entity object corresponding to the current data record is assumed (VBScript only).
Return value
For Visual Basic, a Variant containing an Array of FieldInfo Objects is returned, one for each field in the Entity object. For Perl, a FieldInfos Object collection is returned.

Examples

VBScript


' Iterate through the fields and examine the field names and values
fieldObjs = GetAllFieldValues
For Each field In fieldObjs
   fieldValue = field.GetValue
   fieldName = field.GetName
   ' ... 
Next 

Perl


# Get the list of field values

$fieldvalues = $entity->GetAllFieldValues();



$numfields = $fieldvalues->Count();



for ($x = 0; $x < $numfields ; $x++)

   {

   $field = $fieldvalues->Item($x);                                       

   $fieldvalue = $field->GetValue();

   $fieldname = $field->GetName();

   # ... other field commands

   }