Search found 36 matches
- 18 Mar 2015 4:04
- Forum: Visual Prolog
- Topic: Coding question
- Replies: 13
- Views: 6605
It never (i.e. never) makes sense to have a varM in a fact variable, because that is completely equivalent to having the value directly in the fact variable, except that it becomes more complex. Yes, I was getting carried away trying to apply these new routines. (I find it strange that you mix valu...
- 17 Mar 2015 19:59
- Forum: Visual Prolog
- Topic: Coding question
- Replies: 13
- Views: 6605
- 17 Mar 2015 3:00
- Forum: Visual Prolog
- Topic: Coding question
- Replies: 13
- Views: 6605
- 14 Mar 2015 23:25
- Forum: Visual Prolog
- Topic: Coding question
- Replies: 13
- Views: 6605
- 14 Mar 2015 5:33
- Forum: Visual Prolog
- Topic: Coding question
- Replies: 13
- Views: 6605
Thank you Thomas and Peter. The following is simple and clean: LNAMES = [Name || CODE in SLCODES, nameRefDB(CODE, LabelCODE), get_label(LabelCODE, Name)] Having read a little further on this now I'm starting to get a feel for using varM and collections. I have a feeling I could use collections a gre...
- 13 Mar 2015 5:19
- Forum: Visual Prolog
- Topic: Coding question
- Replies: 13
- Views: 6605
Coding question
This is a general question concerning code usage and style. Given: A list of reference numbers - SLCODES An internal database - nameRefDB A temp working internal database - labelDB Predicate to find the relation to each number - get_lable is there a difference in the following coding methods to obta...
- 29 Jan 2015 0:45
- Forum: Visual Prolog
- Topic: Minor issue with dialogs
- Replies: 12
- Views: 6839
I haven't actually been editing forms or dialogs for awhile so had a quick look just now. As you suggested I disabled the AV I'm currently using (Avast) but find it can still happen. In actuality it shouldn't happen in normal practice though. I discovered by random test that if you open a dialog, se...
- 7 Jan 2015 16:41
- Forum: Visual Prolog
- Topic: openfile issue
- Replies: 11
- Views: 6387
Ah now I get it!
I didn't read the description carefully and wasn't looking at the parameter in
Thank you Thomas.

I didn't read the description carefully and wasn't looking at the parameter in
Code: Select all
exception::tryGetExtraInfo
- 7 Jan 2015 12:20
- Forum: Visual Prolog
- Topic: openfile issue
- Replies: 11
- Views: 6387
Hi Thomas, Thank you but I'm getting quite confused. As far as I can tell the following will catch any and all reasons a file cannot be created or opened if D = exception::tryGetDescriptor(TraceId, fileSystem_api::cannotCreate) then... What I need to do is determine whether the file does not yet exi...
- 6 Jan 2015 18:38
- Forum: Visual Prolog
- Topic: openfile issue
- Replies: 11
- Views: 6387
- 31 Dec 2014 22:11
- Forum: Visual Prolog
- Topic: openfile issue
- Replies: 11
- Views: 6387
- 31 Dec 2014 13:19
- Forum: Visual Prolog
- Topic: openfile issue
- Replies: 11
- Views: 6387
It came to mind that I could test the above by simply sending error code 2 (file not found) to the error handler in the event an exception is raised as in the following: displayPrint(WIN,PAGE) =Y:- retractFactDb(preview_update), try inStream := inputStream_file::openFile8(re_temp_file_name) catch _T...
- 31 Dec 2014 12:25
- Forum: Visual Prolog
- Topic: openfile issue
- Replies: 11
- Views: 6387
- 31 Dec 2014 11:04
- Forum: Visual Prolog
- Topic: openfile issue
- Replies: 11
- Views: 6387
Hi Harrison, I remember when I upgraded this particular module from VP 5.2 to VP 7 there was a timing issue as you suggested although I didn't think there would be any significant performance/timing issues between VP 7.4 and VP 7.5 (and it works in 7.4). I've tried some simple timing changes and so ...
- 29 Dec 2014 21:06
- Forum: Visual Prolog
- Topic: openfile issue
- Replies: 11
- Views: 6387
openfile issue
I have another issue which seems to be related to VP 7.5 (I notice in the dump message "definiteUserError = true" and I suspect there may be something simple here). The code where the error occurs is as follows: displayPrint(WIN,PAGE) =Y:- retractFactDb(preview_update), try inStream := inp...