cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error trying to get the MegaWebOptions

caly
Contributor

Hello

 

I'm trying to find out how to get the Menu Logo defined in a web site with the help of the API.

i have found a small script in the documentation

 

 

Dim oWebSite
Dim oWebSiteDescription
'----
Set oWebSite = GetObjectFromID("ID_Of_My_Website")

Set oWebSiteDescription = oWebSite.WebSiteDescription
'Liste des options
Dim oOptions
Dim i
'----
set oOptions = oWebSiteDescription.GetOptions
for i=0 to 19
 print "Option " & i & ": " & oOptions.Prop(i)
Next
Set oWebSiteDescription = Nothing
Set oWebSite = Nothing

 

 

and I get the following error:

 

exception 0xc0000005: EXCEPTION_ACCESS_VIOLATION
try to read at 0x03d9840f at address 0x3d9840f : WebSiteTemplateDescriptionCreate+0x135bf

 

did I miss anything ?

 

Best Regards

Maryline

0 Replies