GetFieldStringValueAsList

Description

Returns a list of string values for the specified field.

This method is equivalent to first calling the GetFieldValue method to obtain a FieldInfo object and then calling GetValueAsList method of the FieldInfo object. This is a more direct and more efficient way to get the value of a field.

Remarque : This method became available in version 2003.06.00.

Syntaxe

VBScript

entity.GetFieldStringValueAsList field_name 

Perl

$entity->GetFieldStringValueAsList(field_name); 
Identificateur
Description
entity
Objet Entity représentant un enregistrement de données utilisateur. Si vous omettez cette partie de la syntaxe au sein d'un point d'ancrage, l'objet Entity correspondant à l'enregistrement de données en cours est faux (VBScript uniquement).
nom_zone
A String that identifies a valid field name of an Entity.
Valeur de retour
For VBScript, a 1-element Variant Array is returned. The Variant contains the list of values, separated by vbLF. If the field contains no values, this method returns an Empty Variant.

For Perl, a reference to an array of strings containing the values in the list.

Exemple

Perl

my $fieldvaluelist = $entity->GetFieldStringValueAsList($fieldname);
# Instead of:
# my $fieldvaluelist = $entity->GetFieldValue($fieldname)->GetValueAsList();

Feedback