Salve,
come posso manipolare un oggetto dictionary restituito da una funzione ?
es.
retTest_= retTest_ & fncPrelTest_(cnt, str, var, lenvalue, pos)
Function fncPrelTest_(cnt, str, var, lenvalue, pos)
Dim idx, vlu, dato, sep
Dim a, d, i, s
if pos > 0 then
idx = Mid(var, 6, pos)
vlu = right(var, lenvalue)
dato = "STR=" & str & idx & "_" & vlu
Set d = CreateObject("Scripting.Dictionary")
d.Add idx, vlu
a = d.Items ' Get the items.
b = d.keys
For i = 0 To d.Count -1
s = s & str & b(i) & "," & a(i) & "
"
Next
fncPrelTest_ = s
end if
End Function
io devo recuperare i valori
test_3,5
test_1,3
test_0,2
test_2,4
contenuti nell' oggetto dictionary in modo da valorizzare i campi sottostanti nel seguente modo
test0=2
test1=3
test2=4
test3=5
Il primo valore dopo il carattere "_" è l'indice
Come posso fare ?

Rispondi quotando
