Error 0x00000002

Discussions related to Visual Prolog
johnspd
Posts: 1
Joined: 24 Dec 2016 13:55

Error 0x00000002

Unread post by johnspd » 24 Dec 2016 14:02

Attachments
Erro Prolog.PNG
Error
Erro Prolog.PNG (14.66 KiB) Viewed 1682 times

Martin Meyer
VIP Member
Posts: 289
Joined: 14 Nov 2002 0:01

Unread post by Martin Meyer » 24 Dec 2016 21:12

Hi John,

step 5 from the Fundamental Visual Prolog tutorial says about fa.txt: >>You cannot create such a file directly in the IDE itself, but you can...<< Probably that was true when the tutorial has been written. However in current VIP 7.5.0.2 you can create an appropriate text file in the IDE. Instead of step 5 do this:

Right-click on the root entry family1 in the Project Window,
left-click New in Existing Package....

Left-click the lowermost menu item "Text File" in the Create Project Item window,
enter fa in the Name-field,
and left-click Create.

Copy clauses person("Judith",female). person("Bill",male). etc. from the tutorial to the text file's window,
run it by pressing Alt+F5

User avatar
Thomas Linder Puls
VIP Member
Posts: 1622
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 27 Dec 2016 17:04

The message about the "compilation rule" is just a warning. The warning means that the file will not be compiled and linked into the final program. So basically it is a warning stating: you can have this file in your project if you like, but it will not be part of the program.

But since the intension of adding the file to the project is to have easy editing/viewing access to it, so there is no problem.
Regards Thomas Linder Puls
PDC

Post Reply