i found a quite strange behaviour of visual basic, is that normal...?

if i set an object property to a value and read it out right after that i get an automation error.

Code:
' will cause an error
object.property = "..."
x = object.property
but if i put a message box between the lines everything works fine...

Code:
' works fine but bugs the user
object.property = "..."
msgbox ":-)"
x = object.property
why is that??? can i fix this problem without bugging the user with a message box? - ya know, a really often need to write and right after that read an objects property...


matthias path