Restituisce un elenco di valori stringa per il campo associato a FieldInfo. Ciò risulta utile per i campi che contengono più di un valore, compresi i tipi di campo MULTILINE_STRING e i controlli padre/figlio per i campi di tipo elenco di riferimento (REFERENCE_LIST).
È possibile utilizzare questo metodo per un campo scalare (cioè un campo che contiene un valore singolo). Se utilizzato in un campo scalare, questo metodo restituisce solo un elemento nell'array (a meno che il campo non sia vuoto, nel cui caso viene restituito un valore Variant vuoto).
Per determinare se un campo possa contenere più valori, richiamare il metodo GetType sull'oggettoFieldInfo corrispondente. Se il tipo di campo è REFERENCE_LIST, ATTACHMENT_LIST o JOURNAL, il campo può contenere più valori.
VBScript
fieldInfo.GetValueAsList
Perl
$fieldInfo->GetValueAsList();
Per Perl, un riferimento a un array di stringhe contenente i valori dell'elenco.
VBScript
MyList = MyField.GetValueAsList if not IsEmpty (MyList) then for each listItem in MyList '... next end if ' You can separate the single variant that is returned into an array of ' string list elements by using the Split function: av = GetFieldValue("multiline_string_field").GetValueAsList if not IsEmpty(av) then array = Split(Cstr(av(0)),vbLF) u = UBound(array) for i = 0 to u ' ... next end if
Perl
Dim MyList_array MyList = MyField(fieldname).GetValueAsList if not IsEmpty (MyList) then MyList_array = Split(CSTR(MyList(0)),vbLF) for each listItem in MyList_array ' ... next end if