Search found 313 matches

by George
3 Apr 2014 2:48
Forum: Visual Prolog
Topic: Unreachable or excessive code?
Replies: 11
Views: 2736

Use the properties varianble for global access..

If you define a properties varible in .cl file - you can access them globally..

Any personal support reach me to my personal email id..
by George
2 Apr 2014 17:53
Forum: Visual Prolog
Topic: Unreachable or excessive code?
Replies: 11
Views: 2736

:idea: :idea: :idea: facts lastKnownYearInQuarters : unsigned := 2014. lastKnownQuarter : string := "Q2". predicates addTillLastQuater : (). clauses addTillLastQuater():- QuaterList = ["Q1", "Q2", "Q3", "Q4"], Year = varM_unsigned::new(2012), lastKnownQuarter := "Q2", ExistLoop = varM_Boolean::new(f...
by George
31 Mar 2014 7:49
Forum: Visual Prolog
Topic: Need Help :(
Replies: 3
Views: 3307

This forum is for Visual Prolog support. But, the assignment you posted is SWI-Prolog..

Any personal support : reach me at : georgeananth.prolog@gmail.com - I'll support you for completing the task..
by George
27 Mar 2014 13:44
Forum: Visual Prolog
Topic: Retired entity 'vpiDomains::controlHandler'
Replies: 15
Views: 4798

Create a separate class file and put all of them in the ".cl" file..

and make use of it..
by George
27 Mar 2014 12:55
Forum: Visual Prolog
Topic: Retired entity 'vpiDomains::controlHandler'
Replies: 15
Views: 4798

The following is the vpiOldDomains module - have all the domain in your project and use that ... /***************************************************************************** Copyright (c) Prolog Development Center A/S ******************************************************************************/ ...
by George
27 Mar 2014 12:39
Forum: Visual Prolog
Topic: Retired entity 'vpiDomains::controlHandler'
Replies: 15
Views: 4798

Its working perfect to me..

Try to rebuildAll

If not working -
Give the following entry on the "PlayWindow.pack" and "TaskWindow.pack" file

#include @"pfc\vpi\vpiOldDomains\vpiOldDomains.ph"

Rebuild all
by George
27 Mar 2014 11:27
Forum: Visual Prolog
Topic: Code optimization
Replies: 5
Views: 1435

It upto your call, Depends upon the requirement, you can setup the constants value and build the new setup - The final setup will use only the last modified constant value - If you need to change the value, every time you have to do it manually which is really not good.. So, play with that depends u...
by George
27 Mar 2014 11:06
Forum: Visual Prolog
Topic: Code optimization
Replies: 5
Views: 1435

You are trying through conditional compilation #if contenu_visible = b_true #then clauses get_win() = getVpiWindow(). #else clauses get_win() = applicationWindow::get():getVpiWindow(). #endif constants % contenu_visible = b_true. contenu_visible = b_false. Since you have used conditional compilation...
by George
27 Mar 2014 10:17
Forum: Visual Prolog
Topic: Code optimization
Replies: 5
Views: 1435

constants % contenu_visible = b_true. contenu_visible = b_false. clauses start():- if contenu_visible = b_true then Win = getVpiWindow() % here is TaskWindow\frm1.pro(52,15) else Win = applicationWindow::get():getVpiWindow() end if, Container = activeXContainer::new(Win), First of all, You have use...
by George
27 Mar 2014 8:06
Forum: Visual Prolog
Topic: Retired entity 'vpiDomains::controlHandler'
Replies: 15
Views: 4798

I think, you are trying to convert old version Prolog VIP 6.x to latest version 7.x .. I looked into your project - I got too many errors - I addressed most of the errors but, at the end I was not able to run your project - I'm not sure about my fix - I just tried to make the project to run.. Got in...
by George
27 Mar 2014 6:25
Forum: Visual Prolog
Topic: Retired entity 'vpiDomains::controlHandler'
Replies: 15
Views: 4798

:idea: :roll:

Code: Select all

predicates         onControlcell1 : vpiOldDomains::controlHandler.     clauses         onControlcell1(_CtrlID, _CtrlType, _CtrlWin, _CtrlInfo) = vpiOldDomains::handled(uncheckedConvert(gui_native::lResult,0)):-             cell_click(1).
by George
26 Mar 2014 13:39
Forum: Visual Prolog
Topic: A list to CSV
Replies: 18
Views: 3983

:roll: :roll: predicates writeCsv_table : (outputStream Out, string Seperator, Type** ColumnList). clauses writeCsv_table(Out, Sep, ColumnList1) :- if moreData(ColumnList1) then ColumnList2 = writeCsv_row(Out, Sep, ColumnList1), Out:write("\n"), writeCsv_table(Out, Sep, ColumnList2) end if. predicat...
by George
25 Mar 2014 6:32
Forum: Visual Prolog
Topic: UNexpected end of file when use inputStream::endOfStream/0
Replies: 2
Views: 1315

using stream function to read term in a txt file all example in forum failed ,to read term in txt,why this powerful development tool can't do this easy work, I don't know what kind of problem are you experiencing. As of my experience Visual Prolog 7.4 is really awesome and simple compared to other ...
by George
20 Mar 2014 11:05
Forum: Visual Prolog
Topic: unexpected end of file erro when read from external file
Replies: 4
Views: 1813

The following is the some possible way of doing this, I'd like to get some idea about Code efficiency Case 1: Recursive solution predicates copyTextStream : (inputStream In, outputStream Out). clauses copyTextStream(In, Out) :- if not(In:endOfStream()) then Out:write(In:readline(), "\n"), copyTextSt...