PDA

View Full Version : Simple web button getting errors



MWMTex
02-03-2004, 06:39 PM
Can anyone tell what this error means? I know this isn't rocket science but I am having a problem getting this simple browser button to work.

Syntax Error: [Location="Home:ButtonWeb", Event "On Click", Line=1]
Error Detail: [<name> expected near `/'] in [File.OpenURL(http://www.adobe.com/products/photoshop/main.html, SW_SHOWNORMAL);]

All I want is to click on the button and go to this web site. Real simple straight up.

Corey
02-03-2004, 06:44 PM
Hi, you're just missing the quotes, since your URL isn't a variable, it's a string... try

File.OpenURL("http://www.adobe.com/products/photoshop/main.html", SW_SHOWNORMAL);]

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

TJ_Tigger
02-03-2004, 06:45 PM
Did you encase the URL in Quotes?

File.OpenURL("www.indigorose.com", SW_SHOWNORMAL);

MWMTex
02-03-2004, 07:18 PM
Yup that worked. Thanks guys for your help.