that wrong with this code ?

that wrong with this code ?

Darkforce_the_ilogic_guy
Advisor Advisor
271 Views
3 Replies
Message 1 of 4

that wrong with this code ?

Darkforce_the_ilogic_guy
Advisor
Advisor
dim stk

Dim docPropertySet3 As PropertySet

docPropertySet3 = rDoc.PropertySets.Item("User Defined Properties")



docPropertySet3.Item("QTY").Value

 That anyone tell me why this code fail... This is not all the code ..  it is a part of a very large complex code but the code work before I wantet to have som nummber on each partnummer export to a excel list.

 

I simple list want to add the QTY to the date. but as soon as I add the code it fail

 

 

0 Likes
Accepted solutions (1)
272 Views
3 Replies
Replies (3)
Message 2 of 4

Darkforce_the_ilogic_guy
Advisor
Advisor

I am getting this error 

bt_0-1657480647879.png

 

0 Likes
Message 3 of 4

fullevent
Advisor
Advisor

Hi @Darkforce_the_ilogic_guy,

 

what are you trying with the last line? To read or to write?

docPropertySet3.Item("QTY").Value

 
Maybe you wanted this?

stk = docPropertySet3.Item("QTY").Value

 Also stk as Integer?

Maybe it's just something small like that.

Best regards,


Aleksandar Krstic
Produkt- und Projektmanager

Message 4 of 4

Darkforce_the_ilogic_guy
Advisor
Advisor
Accepted solution

I end up using 

	stk = brow.ItemQuantity 

I remove the as Integer. as I was not use if it would be an string or Integer . So that was never the problem