Skip to Content
0
Former Member
Aug 02, 2006 at 06:51 PM

DI - Setting UDF values

267 Views

(PL4, SP01)

A couple of questions -

1) Is there example code for working with UDFs through the DI?

2) Does anyone have code for working with UDF enumerations? (I prefer vb.net but will take anything!)

(example of what I want to do...)

Dim en As IEnumerator = myItem.UserFields.Fields.GetEnumerator

While en.MoveNext

Console.WriteLine(en.Current.name)

Console.WriteLine(en.Current.description)

Console.WriteLine(en.Current.value)

End While

3) I am having all sorts of trouble working with UDF values on PL4 SP01. I have tried working with both "named" values and "index" numbers.

myItem.UserFields.Fields.Item(4).Value

myItem.UserFields.Fields.Item("U_toBasePart").Value

I want to try working with the enumerations to help debug my problems.

Any help would be appreciated.

Thanks!

TB