Getting Attribute Values Using LL_AttrGetValues
I am trying to get the attribute values back for an object using the function LL_AttrGetValues in VB. For some reason no matter what object I choose that has attributes set for it, I get the default attributes back for the object even though I have LL_ATTR_DATAVALUES in the function.What am I doing wrong??? status = (LL_AssocSetInteger(lngParentObjectAssoc, "ID", lngParentObjID)) status = (LL_ListObjectCategoryIDs(session, lngParentObjectAssoc, lngCatIDList)) status = (LL_ValueGetIndexValue(lngCatIDList, 0, lngCatID)) status = (LL_FetchCategoryVersion(session, lngCatID, lngCatVersionAssoc)) status = LL_AttrListNames(session, lngCatVersionAssoc, lngAttrPathList, lngRequestAttrs) status = LL_ValueAlloc(length) status = LL_ValueAlloc(length1) status = LL_ValueGetLength(lngRequestAttrs, length) textList = "" Dim Text, Text1 As String For i = 0 To length - 1 Text = LCase(Trim(GetString(lngRequestAttrs, i))) status = LL_AttrGetValues(session, lngCatVersionAssoc, Text, LL_ATTR_DATAVALUES, lngAttrPathList, lngAttrValues) status = LL_ValueGetLength(lngAttrValues, length1) For j = 0 To length1 - 1 DocID = 0 Text1 = "" status = LL_ListGetType(lngAttrValues, j, valType) If valType = LL_STRING Then Text1 = LCase(Trim(GetString(lngAttrValues, j))) End If textList = textList & Text & "^" & status & "^" & length1 & "^" & valType & "^" & Text1 & "
" & vbCrLf Next NextThanks,Bill Mendesbmendes@col-col.com