Undeclared identifier & Undeclared fact
Posted: 15 Aug 2019 12:13
Dear Sir/Madam,
I am new to Visual Prolog 9, but experienced at PDC prolog syntax.
I am not yet competent with the object oriented features of Visual Prog 9.
I have created a new project with class facts defined in a database in TaskWindow.pro. These facts can be manipulated as I wish.
I have created a dialog within the TaskWindow pack called "Prime". This dialog is intended to change the status of a database fact called "user". On compilation I get two types of errors.
1. The first error is "error c229 : Undeclared identifier 'gui_native::setRect/1', the identifier is known as 'setRect/5->' in the class 'gui_native'" and is located in automatically generated code in the module "prime.pro"
2. The second error relates to the definition of the facts. When I try to find/assert/retract a "user" fact in "prime.pro" generated in a dialog I get the error "e283 Undeclared fact 'user/4' prime.pro TaskWindow\dialogs\".
I am fairly sure that the second error relates to a problem with my understanding of the definition of my database which I am trying to declare as "global facts" in the old world of PDC Prolog. At least at this stage, I want to be able to access facts within this database from any dialog I create.
Regards,
Loffy
I am new to Visual Prolog 9, but experienced at PDC prolog syntax.
I am not yet competent with the object oriented features of Visual Prog 9.
I have created a new project with class facts defined in a database in TaskWindow.pro. These facts can be manipulated as I wish.
I have created a dialog within the TaskWindow pack called "Prime". This dialog is intended to change the status of a database fact called "user". On compilation I get two types of errors.
1. The first error is "error c229 : Undeclared identifier 'gui_native::setRect/1', the identifier is known as 'setRect/5->' in the class 'gui_native'" and is located in automatically generated code in the module "prime.pro"
2. The second error relates to the definition of the facts. When I try to find/assert/retract a "user" fact in "prime.pro" generated in a dialog I get the error "e283 Undeclared fact 'user/4' prime.pro TaskWindow\dialogs\".
I am fairly sure that the second error relates to a problem with my understanding of the definition of my database which I am trying to declare as "global facts" in the old world of PDC Prolog. At least at this stage, I want to be able to access facts within this database from any dialog I create.
Regards,
Loffy