Jump to content
DidierXT

Syntax Error: Unknown name

Recommended Posts

After opening an existing project, I'm unable to compile

Syntax Error: Unknown name "W3Button1" [line: 3, column: 1, file: Form1:impl]

 

Cutting and pasting components (no multiselect !) would only pass the error on the next component in SFM definition file.

Copying the SFM into a new project won't work either.

 

Test project attached

 

 

 

SMS_test.zip

Share this post


Link to post
Share on other sites

You are missing   {$I 'Form1:intf'}  in the private section of your form

 

TForm1 = class(TW3Form)
  private
  {$I 'Form1:intf'}
  protected

 

Also, you will need to select your button on the form, go to the object inspector, select the events tab, and delete the event that you have no implementation for

Share this post


Link to post
Share on other sites

No, because the SMS compiler is 100% independent from the SCL stuff. However, the {$I...} directive is automatically added to the code if you create a form app through a wizard. And doing something like this reliably is something we cannot do, because the compiler/IDE/editor/... never knows if this file was meant to be part of this form class.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×