NetTalk Central

Author Topic: Report error Unknown procedure label  (Read 3770 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Report error Unknown procedure label
« on: January 16, 2013, 09:04:40 PM »
Windows7 Ultimate Clarion8.0.9661 Nettalk702
I have a problem with compiling an application.
The compile error is reported as line 2052 Unknown procedure label.
Clicking on the error shows 1.jpg which I understand to mean that there is a problem with the procedure prototype or parameter.
2.jpg is the prototype and 3.jpg is the parameter on the report.
I call the report from a button on the browse as I have always done with previous reports (4.jpg)
I also changed the session timeout on the netSimple Object in the webserver to force a full regenerate and recompile.
I have also tried renaming the report.

I have other reports in this app which work with no problem so I'm stumped.
Any suggestions as to what the problem could be?




[attachment deleted by admin]
« Last Edit: January 16, 2013, 09:07:35 PM by terryd »
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Report error Unknown procedure label
« Reply #1 on: January 16, 2013, 09:24:28 PM »
Linked it to a menu but still got the same error (just a different line number)
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Report error Unknown procedure label
« Reply #2 on: January 17, 2013, 12:18:14 AM »
Don't know if it matters but I always declare my reports as global.

Peter

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Report error Unknown procedure label
« Reply #3 on: January 17, 2013, 07:18:34 AM »
>> The compile error is reported as line 2052 Unknown procedure label.
>> Clicking on the error shows 1.jpg which I understand to mean that there is a problem with the procedure prototype or parameter.

No, it means that the report procedure is not set on the "calls" list from the WebHandler, is not declared globally, and is not in the same module as the web bandler.

So the simplest solution is either add the reports to the "calls" of the WebHandler, or easier, just mark them as "declare globally".

cheers
Bruce

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Report error Unknown procedure label
« Reply #4 on: January 17, 2013, 10:04:07 PM »
Thanks Peterh/Bruce.
I was just copying the settings of a report in the same app which didn't have declare globally set, or set as a call from the webhandler, but which did work.
Checking the declare globally did work so I will use that in future.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186