Search found 147 matches

by Peter Muraya
16 Jul 2015 7:11
Forum: Visual Prolog
Topic: What is TaskMenu item?
Replies: 6
Views: 4067

What is TaskMenu item?

Hi, When you open TaskMenu.mnu to access the task menu editor you see the following inputs for each menu item: Constant, Item and Help. I understand Constant to be the text that defines a constant in the resourceIdenfiers and has the vpiDomains::menuTag; but what is item ? Why is it important? What ...
by Peter Muraya
8 Jul 2015 8:12
Forum: Visual Prolog
Topic: There is no browser information for the selected item
Replies: 1
Views: 2354

There is no browser information for the selected item

Hi, I'm trying to navigate to a specific place in my code by clicking on a set item in the Dialog and Window Expert (TaskWindow) dialog box. It used to work before, but now I get the message: There is no browser information for selected item . I have tried to re-build the project but the message won...
by Peter Muraya
8 Jul 2015 8:00
Forum: Visual Prolog
Topic: Inconsistency in trapping and reporting error The interface 'winner{@Vacancy}' takes 1 argument(s)
Replies: 3
Views: 2421

Thanks Martin.
Since this issue is being brought about by the parameter in the winner interface, I have had to move the method domain from where I thought would be its most logical home to one of my existing and non-parameterized interface -- similar to your winnerDomains in the second example.
by Peter Muraya
3 Jul 2015 5:21
Forum: Visual Prolog
Topic: Inconsistency in trapping and reporting error The interface 'winner{@Vacancy}' takes 1 argument(s)
Replies: 3
Views: 2421

Inconsistency in trapping and reporting error The interface 'winner{@Vacancy}' takes 1 argument(s)

Hi, I see some inconsistency in the way Visual Prolog compiler traps and reports the following error: The interface 'winner{@Vacancy}' takes 1 argument(s) . Consider the following code which I assumed to be valid; the compiler throws up this error at the the line marked /*1*/ , BUT NOT at the one ma...
by Peter Muraya
26 Jun 2015 7:14
Forum: Visual Prolog
Topic: Div, mod, quot and rem differences
Replies: 5
Views: 3752

Thanks. I'm working with positive numbers and I note that div and quot have the same effect.
by Peter Muraya
25 Jun 2015 8:36
Forum: Visual Prolog
Topic: Div, mod, quot and rem differences
Replies: 5
Views: 3752

Div, mod, quot and rem differences

What are the differences between the following operators:-
- div and quot ?
- mod and rem ?
by Peter Muraya
15 Jun 2015 17:04
Forum: Visual Prolog
Topic: fatal error f098: getTypeVariableTerm name(02A85660,"type","Type",true)
Replies: 9
Views: 3174

Hi Thomas, You came to the same conclusion as I did, that the double support was indeed the cause of the problem. I also can live with secondary not supporting expression and that is consistent with your suggestion of simplifying it -- thus avoiding the double support. Yes, you are right; the whole ...
by Peter Muraya
15 Jun 2015 8:21
Forum: Visual Prolog
Topic: fatal error f098: getTypeVariableTerm name(02A85660,"type","Type",true)
Replies: 9
Views: 3174

Thomas, I fixed the other errors, plugged back the guardian and, you are right. The problem re-appeared. Im now able to reproduce the problem using the attached code. The problem is with this declaration:- /* A relation is both a secondary expression and a key*/ interface relation supports secondary...
by Peter Muraya
13 Jun 2015 7:27
Forum: Visual Prolog
Topic: fatal error f098: getTypeVariableTerm name(02A85660,"type","Type",true)
Replies: 9
Views: 3174

Hi Thomas, The problem with this error is that it seems to stop all further compilations, so that other errors in the program (which might or might not be related to this one) are difficult to see and fix. What I have done is to pull this module out of the program, so that I can address the other er...
by Peter Muraya
12 Jun 2015 16:40
Forum: Visual Prolog
Topic: fatal error f098: getTypeVariableTerm name(02A85660,"type","Type",true)
Replies: 9
Views: 3174

Thanks Thomas. I clicked on the error and got a a dialog box asking me to describe what I was doing when I got the error. When I click on the Show Details button I get a somewhat more meaningful message. Is this a repackage of the same information in the guardian.dump? I have forwarded it to you. I ...
by Peter Muraya
12 Jun 2015 9:54
Forum: Visual Prolog
Topic: fatal error f098: getTypeVariableTerm name(02A85660,"type","Type",true)
Replies: 9
Views: 3174

fatal error f098: getTypeVariableTerm name(02A85660,"type","Type",true)

Hi, I get this fatal error f098 when I compile my source code and I have no idea what is causing it. The compiler presents 2 clues which I don't know how to interpret. 1) Following the error there is an extra message that says Internal error, dump file was stored to 'c:\temp\guardian.dump '. I have ...
by Peter Muraya
11 Jun 2015 5:19
Forum: Visual Prolog
Topic: How to switch off a compiler warning
Replies: 3
Views: 2717

The correct syntax for the short form in the Project settings is /w:655-
by Peter Muraya
10 Jun 2015 16:21
Forum: Visual Prolog
Topic: How to switch off a compiler warning
Replies: 3
Views: 2717

Thanks Martin, I copied your /Warning:655- and pasted it in the project settings and it worked too. Now I know the correct syntax. Thanks again.
by Peter Muraya
10 Jun 2015 9:19
Forum: Visual Prolog
Topic: How to switch off a compiler warning
Replies: 3
Views: 2717

How to switch off a compiler warning

Hi, I would like to switch off warning number 655. In version 7.4 of Visual Prolog I simply added the switch /w 655 to the project settings and got the results I wanted. Im trying the same in this version 7.5; the compiler would not accept it, throwing the error invalid option:'655'! . How should I ...
by Peter Muraya
9 Jun 2015 16:32
Forum: Visual Prolog
Topic: Problem with Scope Type Parameter
Replies: 5
Views: 2602

Hi Martin, Thomas will hopefully address the access violation issue, but I have never understood why the compiler should complain that the parameter @Type is not used in the following construct -- which is why you needed to add the dummy line. interface objSupport{@Type} predicates from obj{@Type} d...