>From Visual Basic, does anyone know how to use the Value property of the
MBGlobals collection to get the value of a MapBasic variable that is defined
as an array of a custom type. (Currently, the MsgBox line at the bottom
returns an error in VB of "91: Object or With block variable not set")
In MapBasic:
Type Layers
iVisible as Integer
iEditable as Integer
iSelectable as Integer
iSelectableEnabled as Integer
iLabel as Integer
sLayerName as String
iLayerType as Integer
End Type
Global LayerData() as Layers
Then, In VB:
Set mbApp = mapinfo.MBApplications(iMBAppNum)
Set globinfo = mbApp.MBGlobals
'following line results in run-time error:
Msgbox globinfo("LayerData(1).sLayerName").Value
Thanks
Randy
Randy Majors - Director, Spatial Products
Resource Data International, a Financial Times Energy Company
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> - 303-444-7788 -
http://www.powermap.com <http://www.powermap.com/>
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]