Squirrel

The programming language
Welcome to Squirrel Sign in | Join | Help
in Search

Error const

Last post 05-05-2008, 11:04 PM by fagiano. 1 replies.
Sort Posts: Previous Next
  •  05-05-2008, 1:25 PM 2492

    Error const

        const MB_ICONASTERISK = 0x00000040;
        const MB_ICONINFORMATION  = MB_ICONASTERISK;

    Squirrel is generating the error:

    Error scalar expected: integer, float or string


    Regards
    Rigoberto D. Benitez
  •  05-05-2008, 11:04 PM 2494 in reply to 2492

    Re: Error const

    Well, that's the expected behaviour MB_ICONASTERISK is not a scalar. I probably should allow consts as well, but as is now you can't.

    Alberto

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems