Announcement

Collapse
No announcement yet.

Syntax Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bob Zale
    replied
    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.

    Leave a comment:


  • Peter Jinks
    replied
    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
    Regards,

    Pete.

    Leave a comment:


  • Cliff Nichols
    replied
    code not shown
    so line 277 means?????????????????????????

    Leave a comment:


  • Brian Heibert
    started a topic Syntax Error

    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 Error
Working...
X