Search found 84 matches

by ahmednadi
11 Jun 2017 21:05
Forum: Visual Prolog
Topic: Dynamic variable
Replies: 2
Views: 1367

Dynamic variable

Dear Sir; I would like to define a dynamic variable such as clauseX = clauseX(subclauseX,subclauseX). subclauseX = subclauseX1(phraseX); subclauseX2(phraseX,phraseX); subclauseX3(phraseX,phraseX,phraseX); subclauseX4(phraseX,phraseX,phraseX,phraseX); subclauseX5(phraseX,phraseX,phraseX,phraseX,phras...
by ahmednadi
27 May 2017 21:09
Forum: Visual Prolog
Topic: Delete a group of text files
Replies: 4
Views: 1721

Dear Sir;
I didn't use try catch finally before
if you could help by clear example for that.
Thanks
Ahmed Nady
by ahmednadi
27 May 2017 12:49
Forum: Visual Prolog
Topic: Delete a group of text files
Replies: 4
Views: 1721

Delete a group of text files

Dear Sirs;
Good afternoon
Could you help me to delete a group of text file?
thanks
Ahmed Nady
by ahmednadi
13 Apr 2015 9:57
Forum: Visual Prolog
Topic: Folder Deleting
Replies: 5
Views: 3380

Dear Sir; Thank you for your reply. I mean Delete that delete the folder from the disk. I want to create a predicate to delete a selected folder to be deleted with its contents. When I try this, error appears telling me that the folder has contents. Therefore, I want to delete the folder with its co...
by ahmednadi
11 Apr 2015 12:14
Forum: Visual Prolog
Topic: Folder Deleting
Replies: 5
Views: 3380

Folder Deleting

Dear Sirs;
I hope to find all of you in good health.
Could you help me to delete a folder and its contents?
Regards;
AHMED NADY
by ahmednadi
2 Apr 2015 12:42
Forum: Visual Prolog
Topic: Append records to a file.
Replies: 6
Views: 3110

Dear Sir;
Thank you.
The order of the facts is important.
Could you help me?
Regards;
AHMED
by ahmednadi
2 Apr 2015 10:32
Forum: Visual Prolog
Topic: Append records to a file.
Replies: 6
Views: 3110

Dear Sir;
Thank you.
I want to append the whole internal DB. there is an file contents some records and we want to add new records to them.
Regards;
AHMED
by ahmednadi
2 Apr 2015 9:01
Forum: Visual Prolog
Topic: Append records to a file.
Replies: 6
Views: 3110

Append records to a file.

Dear Sir;
Could you help me to append records form an internal DB to an external file?
Regards;
AHMED
by ahmednadi
2 Nov 2014 11:17
Forum: Visual Prolog
Topic: Problem in replaceAll predicate
Replies: 6
Views: 3567

Dear Sir;
Please find attached herewith the STRING file.
Regards;
AHMED
by ahmednadi
1 Nov 2014 12:21
Forum: Visual Prolog
Topic: Problem in replaceAll predicate
Replies: 6
Views: 3567

Dear Sir; Thank you. I try all these but there are some cases still have problems. I try the following: Str1=string::replaceAll(Str," \u0644 "," \u0644"), %ل Str2=string::replaceAll(Str1,"\u00A0\u0644\u00A0","\u00A0\u0644"), %ل But bad result I have. Could you help me to understand this ...
by ahmednadi
22 Oct 2014 12:55
Forum: Visual Prolog
Topic: Problem in replaceAll predicate
Replies: 6
Views: 3567

Problem in replaceAll predicate

Dear Sir; Could you help me? I have an Arabic text and I want to modify some characters to be written in some way. Str1=string::replaceAll(Str," ب "," ب"), Str2=string::replaceAll(Str1," ل "," ل"), Str3=string::replaceAll(Str2," و "," و"), But it doesn't work and ...
by ahmednadi
27 Aug 2014 5:52
Forum: Visual Prolog
Topic: VP search technique
Replies: 11
Views: 2549

Dear Sir; Thank you for your recommendations. I would like to add that the recursive predicate pr_phra which consists of two cases: class predicates pr_phra : (string, string, pr_Phra, string*) nondeterm (i,o,o,o). clauses Case (1): pr_phra(Str, Rest, pr_phra2(P_Phra1, P_Phra2), PrList) :- _W1 = try...
by ahmednadi
25 Aug 2014 17:28
Forum: Visual Prolog
Topic: VP search technique
Replies: 11
Views: 2549

Dear Sir; Thank you very much for your fruitful effort. I will rearrange my code. but the last case is: pr_ph(Str, Rest, pr_ph1(Ad), PrList) :- frontToken(Str, Ad, Rest), getW(ID, Ad, _, "ad", _, _, _, _, _, _, _, _, _, _, _, _, _), ID <> 0, PrList = ["ad"]. you will find four cases for the predicat...
by ahmednadi
25 Aug 2014 9:09
Forum: Visual Prolog
Topic: VP search technique
Replies: 11
Views: 2549

pr_Phra:(string,string,pr_Phra,string*) nondeterm(i,o,o,o). pr_Phra(Str,Rest,pr_Phra2(P_Phra1,P_Phra2),PrList):- frontToken(Str,W1,_), getW(ID1,W1,_,"pr",_,_,_,_,_,_,_,_,_,_,_,_,_), ID1<>0, pr_ph(Str,Rest1,P_Phra1,PrLst1), frontToken(Rest1,W2,_), getW(ID2,W2,_,"pr",_,_,_,_,_,_,_,_,_,_,_,_,_), ID2<>...
by ahmednadi
24 Aug 2014 7:33
Forum: Visual Prolog
Topic: VP search technique
Replies: 11
Views: 2549