Quote Originally Posted by tmighty2 View Post
Sorry to ask again, but can you please show me an example?

My problem is that I don't know how to access the hotspots that the function returns.
I have tried this:

Dim hotspots
hotspots = WV.jsRun("window._grid_ensureHotSpotIds")

Debug.Print UBound(hotspots) 'here it errors out saying "Type mismatch" (obviously it's not an array. It's empty)
You will have to check in your js-source, whether the window._grid_ensureHotSpotIds function,
returns something at all...

And if it does, then gather these results in your own array -
and then return this array as a serialized JSON-string via:
return JSON.stringify(myHotspotArray)

At the vb6-side you can then easily convert that returned JSON-string into a cCollection:
Dim oHotSpots As cCollection
Set oHotSpots = New_c.JSONDecodeToCollection(WV.jsRun("window._grid_ensureHotSpotIds"))

HTH

Olaf