You have several problems here:
1. Web site - www. contains illegal characters in the element name. You need to rename this element before it can be used in programming.
2. You reference an element named "WebSite" in your code, but it does not appear to be named that. Problems 1 and 2 will both be solved by renaming the element to WebSite.
3. You have several other syntax errors.
var WebSite as Int
should be
var IEWebSite as Int
(so it is not named the same as your element)
If WebSite <> " Then
should be
If WebSite <> "" Then
WebSite = @Shell (IEpath + " " WebSite)
should be
IEWebSite = @Shell (IEpath + " " + WebSite)
(Note the corrected variable name and the added + sign)
If Not WebSite = 0 Then
should be
If Not IEWebSite = 0 Then
(Note we're checking the variable, not the element value)
Here's the whole thing corrected, assuming you rename the element to be called WebSite.
var IEWebSite as Int
var IEpath as String
IEpath = @Chr(34) + "C:\Program Files\Internet Explorer\IEXPLORE.EXE" + @Chr(34)
If WebSite <> "" Then
IEWebSite = @Shell (IEpath + " " + WebSite)
If Not IEWebSite = 0 Then
@Msg ("Couldn't open web browser")