Skip to content

System Colors – object not found

Forums Forums Superbase NG Discussion System Colors – object not found

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3391
    jaszczak
    Participant

    I recently edited a form used to add multiple lines to a detail block, and saved it to a .sma file as usual.
    The form looked fine, but running the form with the main project gives Error (21) Object not found,
    and it is related to

    clrBtnFace =@ colors.getsyscolor(COLOR_BTNFACE)

    at least. If I go back and turn off the use system colors check box and save the form and save as .sma, the form works fine in the project.

    This seems to be a relatively new problem.

    #3393
    Michael
    Keymaster

    If this is a new project, you need to make sure that the uisyshelp.sml is added to the project as a library and that the uisyshelphdr.sma is included in the project before this source file is included (the compiler is a one pass compiler, so constants need to be defined before they are used – therefore include file order can be important).

    #3399
    jaszczak
    Participant

    Thanks Neil,
    Sorry I forgot order matters, and indeed, I found that I had inserted my include .sma before the uisyshelphdr.sma include. Fixed.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.