PROBLEM! Exception: expectedChar (runtime_exception)

Discussions related to Visual Prolog
Callovrat
Posts: 3
Joined: 8 May 2016 22:08

PROBLEM! Exception: expectedChar (runtime_exception)

Unread post by Callovrat » 9 May 2016 7:12

Hello Sirs, i need your help. I can't understand where i did a mistake and I hope that you can solve it.

Code: Select all

Exception: expectedChar (runtime_exception)    Received character differs from expected one    error code = 327  ExtraInfo = Expected symbol '"', got 'б' for domain '::string'. The nearest context is: 'больше заб'   raised 2016-05-09 01:08:14 ThreadId: 3084 Class name: runtime_exception Predicate name: runtimeExceptionRaiser

Code: Select all

predicates     onShow : window::showListener. clauses     onShow(_Source, _Data):- Time = time::new(), Time:getDate(CurY,M,D),                                         write(CurY,"   ",M,"   ",D),nl,                                                 Time:getTime(Ch,Min,Sek),                                                 write(Ch,"   ",Min,"   ",Sek),nl,                                     Str = concatList([tostring(CurY),".",tostring(M),".",tostring(D),"  ",tostring(Ch),":",tostring(Min),":",tostring(Sek)]),                                                 edit_дата:setText(Str),                                                 listEdit_цель:addList(["меньше пропускать", "больше забивать"]),                                                 listEdit_врт:addList(["плохой", "хороший"]),                                                 listEdit_защ:addList(["плохой", "хороший"]),                                                 listEdit_пзщ:addList(["плохой", "хороший"]),                                                 listEdit_нап:addList(["плохой", "хороший"]).
Attachments
2.JPG
2.JPG (190.52 KiB) Viewed 4667 times
1.JPG
1.JPG (195.01 KiB) Viewed 4667 times

User avatar
Thomas Linder Puls
VIP Member
Posts: 1625
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 9 May 2016 8:17

The problem appears to be in line 47. It seems to be in toTerm or something like that.
Regards Thomas Linder Puls
PDC

Callovrat
Posts: 3
Joined: 8 May 2016 22:08

Unread post by Callovrat » 9 May 2016 8:55

Yes, this line has toTerm, but I still don't understand that is uncorrect :-)
Attachments
3.JPG
3.JPG (68 KiB) Viewed 4659 times

Vitaly Markov
Active Member
Posts: 48
Joined: 30 Nov 2003 0:01

Unread post by Vitaly Markov » 9 May 2016 21:00

To come to me on Wednesday (K-192). I will help.

User avatar
Thomas Linder Puls
VIP Member
Posts: 1625
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 9 May 2016 21:03

Why do you call toTerm?

If toTerm should create a string the user will have to write "something" inclusive the quotes.
Regards Thomas Linder Puls
PDC

Callovrat
Posts: 3
Joined: 8 May 2016 22:08

Re:

Unread post by Callovrat » 11 May 2016 6:55

Vitaly Markov wrote:To come to me on Wednesday (K-192). I will help.
Vitaly, hello, can you help me?

Vitaly Markov
Active Member
Posts: 48
Joined: 30 Nov 2003 0:01

Unread post by Vitaly Markov » 11 May 2016 16:13

I have assumed that you are my student who writes a similar academic project. I was mistaken. Apparently you are not my student. :)
However I am ready to help you.
Send me your project on mail. Or describe a problem at a Russian-speaking forum http://www.hardforum.ru/f141/
We necessarily will help you.

Post Reply