Can't retrieve value from ItemProprieties outlook : Operation failed -
another problem can't figure out, once again. i'm retrieving custom proprieties added code in mailitem. i'm testing outlook 2010, it's straightforward that
dim mailindex mailindex = objfolder.items.count 1 step - 1 dim property1 set property1 = getmigrationproperty(objfolder.items(mailindex).itemsproprieties) '... code goes on next after second iteration of loop, property1.value "operation failed" , throws exception. why?
ps: have problem since changed loop type each inversed for
ouch! real code? multiple dot notation taken extreme.
cache items variable before entering loop , call items(index) once per iteration:
set items = objfolder.items mailindex = items.count 1 step - 1 dim property1 set item = items.item(mailindex) set property1 = getmigrationproperty(item.itemsproprieties) '... code goes on set item = nothing next
Comments
Post a Comment