Search found 147 matches

by Peter Muraya
21 Aug 2015 6:29
Forum: Visual Prolog
Topic: What is TaskMenu item?
Replies: 6
Views: 3983

Hello Harrison, I agree with you. It was not intuitive when I first used the code experts that the use of the .win was to extend the functionality of the .mnu file. Thomas wrote I think the "constant" has lost it meaning/purpose at some point. When I initially found Constant and Item in the Task Men...
by Peter Muraya
20 Aug 2015 17:31
Forum: Visual Prolog
Topic: What is TaskMenu item?
Replies: 6
Views: 3983

Hi Frank, Ok, so Item does what I thought Constant does. Then I should switch my question the other way round so that it reads:- 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 Item to be the text that...
by Peter Muraya
19 Aug 2015 19:16
Forum: Visual Prolog
Topic: How to use multi-threading techniques to stop a process
Replies: 6
Views: 3028

Thanks Thomas.
I was motivated to look at the multithread package by your thread::start method; there is quite a lot of stuff there! I will have a look at the Language reference to see if I can make sense of it. Thanks.
by Peter Muraya
19 Aug 2015 19:02
Forum: Visual Prolog
Topic: How can I limit the length of source lines?
Replies: 12
Views: 4202

Frank, sorry for the misspelling. And thanks for link to the KFKI website. The google translation to English of some of the the pages helped me to follow them quite easily. I take your point about debugging from a printed copy. I too have been on that road but laptops have changed my habit quite a b...
by Peter Muraya
19 Aug 2015 7:00
Forum: Visual Prolog
Topic: How can I limit the length of source lines?
Replies: 12
Views: 4202

Hello Nancy,
In case of printed source code the limit set to 72-80 characters is strict for portrait pages.
I have not printed my code for a long time. The only situation I see printing necessary is as sample code in a printed document. When else would you really want to print code?
by Peter Muraya
19 Aug 2015 6:51
Forum: Visual Prolog
Topic: How to use multi-threading techniques to stop a process
Replies: 6
Views: 3028

Thanks, Thomas. Let me get this right as I think it is important for choosing the best approach. Do you mean that the Do_the_real_work() predicate in the code below would have to be short/fast in the delayCall method to avoid making the main thread unresponsive? And that this constraint does not app...
by Peter Muraya
18 Aug 2015 17:23
Forum: Visual Prolog
Topic: How to use multi-threading techniques to stop a process
Replies: 6
Views: 3028

Hi Thomas. Yes, you are right, the piece as I had written would never terminate. I have used the delayCall method to build and test the solution. It works very well. Here it is, complete with a counter to show me that the job is running. class facts terminate:() determ. predicates onPerform : window...
by Peter Muraya
17 Aug 2015 17:24
Forum: Visual Prolog
Topic: How to use multi-threading techniques to stop a process
Replies: 6
Views: 3028

How to use multi-threading techniques to stop a process

Hi, I have a process that could go on for a long time and sometimes I need to stop it in a much more elegant way than the Ctl-Alt-Del method that I have been using. I know it has to do with running multiple threads using guards, monitors, etc but I'm not sure how to get started. Here is the single t...
by Peter Muraya
17 Aug 2015 16:40
Forum: Visual Prolog
Topic: How can I limit the length of source lines?
Replies: 12
Views: 4202

Hello Nancy, I find that such a feature would be more helpful for organizing long comments than for breaking the actual source code. Consider the sample code below. The actual Prolog code statements are generally short; comments can be rather long and mine tend to be. Without a "word wrapping" facil...
by Peter Muraya
12 Aug 2015 16:52
Forum: Visual Prolog
Topic: How to implement a list in a vipgrammar?
Replies: 9
Views: 3896

Hello B.Hooijenga, The impression I had was that, yes, open vCard, vCardGrm is indeed an instruction to the parser generator to open files that are yet to be produced . That is what I found strange. I will do a few tests with different grammars in order to understand this generator much better; its ...
by Peter Muraya
12 Aug 2015 9:05
Forum: Visual Prolog
Topic: How do you bind an ODBC parameter to an autonumber field and retrieve it later?
Replies: 2
Views: 2714

Thanks Thomas, that was useful. Indeed the autonumber field is an identity field and so the @@identity function would be applicable. I have learnt of other alternative functions -- scope_identity() and ident_current(...) but Access won't recognize them. I have revised my test code to include your su...
by Peter Muraya
11 Aug 2015 18:08
Forum: Visual Prolog
Topic: How do you bind an ODBC parameter to an autonumber field and retrieve it later?
Replies: 2
Views: 2714

How do you bind an ODBC parameter to an autonumber field and retrieve it later?

Hi, I'm carrying out an intensive database operation that is performing poorly and which I think there is some room for improvement by binding an ODBC parameter to an autonumber field . I'm not sure if it is an appropriate thing to do or not, and if it is, how to do it correctly. The table I am read...
by Peter Muraya
11 Aug 2015 16:39
Forum: Visual Prolog
Topic: How to implement a list in a vipgrammar?
Replies: 9
Views: 3896

Thank you.
by Peter Muraya
11 Aug 2015 6:25
Forum: Visual Prolog
Topic: How to implement a list in a vipgrammar?
Replies: 9
Views: 3896

Thomas, thanks, especially for the reference to YACC grammar specification.
by Peter Muraya
10 Aug 2015 17:06
Forum: Visual Prolog
Topic: How to implement a list in a vipgrammar?
Replies: 9
Views: 3896

Thanks I'm also new to the vipLalr parser and this example has been very helpful. I would like a few clarifications. 1 Which classes/interfaces is the open vCard,vCardGrm referring to? 2 If a terminal token is demarcated by the square brackets, why is it necessary to have the t_ prefix in its name? ...