Brian -
When you get a compile-time error, in almost every case, the compiler will display the line number and approximate column number of the error. This should point you right at the the extra comma noted earlier.
Bob Zale
PowerBASIC Inc.
Announcement
Collapse
No announcement yet.
Syntax Error
Collapse
X
-
There is a comma between BYVAL and %NULL in the fourth parameter of the ShellExecute statement.
Code:ShellExecute BYVAL %Null, "open", zString1,[B][COLOR="Red"]BYVAL,%Null[/COLOR][/B], BYVAL %Null, %SW_ShowNormal
Pete.
Leave a comment:
-
Syntax Error
I am using this code to go to a website
CASE %IDM_HELP_GOTOBRIANHEIBERTNET
LOCAL zString AS ASCIIZ * %MAX_PATH
zString = "http://www.brianheibert.net"
ShellExecute BYVAL %Null, "open", zString, BYVAL %Null, BYVAL %Null, %SW_ShowNormal
CASE %IDM_HELP_REGISTER500
LOCAL zString1 AS ASCIIZ * %MAX_PATH
zString1 = "http://www.brianheibert.net/store.html"
ShellExecute BYVAL %Null, "open", zString1,BYVAL,%Null, BYVAL %Null, %SW_ShowNormal
%IDM_HELP_GOTOBRIANHEIBERTNET works
%IDM_HELP_REGISTER500 produces this error when I copy the code into it
This is in line 277
CASE %IDM_HELP_REGISTER500
LOCAL zString1 AS ASCIIZ * %MAX_PATH
zString1 = "http://www.brianheibert.net/store.html"
ShellExecute BYVAL %Null, "open", zString1,BYVAL,%Null, BYVAL %Null, %SW_ShowNormal
and I get the following error message:
Syntax ErrorTags: None
Leave a comment: