Type mismatch error while reading lotus notes document in vb6 -


am trying read lotus notes document using vb6.i can able read values of type mismatch error throwed.when reintialise vb6 variable works stops after point.

ex; address field in lotus notes

lsaddress=imsfield(doc.address)  private function imsfield(pvalue) imsfield=pvalue(0) end function 

like reading remaining fields @ point runtime error "13" type mismatch error throwed.

i have manually reintialize

 set doc=view.getdocumentbykey(doclist) 

the type mismatch error occurs field. issue should data type incompatibility. try figure out field causes error.

use getitemvalue() instead of short notation accessing fields , don't use imsfield():

lsaddress=doc.getitemvalue("address")(0) 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -