Hi everybody. I'm having a stupid little problem with retrieving strings from a collection. I'm using the Web Browser Control and I'm trying to get all 'formatBlocks' (Heading 1, Heading 2, etc.).
I have working code for this from MSDN, in JavaScript. In a webpage it works like a charm, but when I convert it to VB I only get an empty string in return from the collection.
Check out the web example (IE only). Why, then, doesn't this work in VB?
It probably just has to do with some string parsing, creating a buffer or something... The Count method returns the same value as in the web example, so I know the collection is correct. Can anyone shine some light on this?VB Code:
For i = 1 To objHelper.BlockFormats.Count MsgBox objHelper.BlockFormats.Item(i) Next i![]()




Reply With Quote