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

PROBLEM! Exception: expectedChar (runtime_exception)

Unread post by Callovrat »

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 10596 times
1.JPG
1.JPG (195.01 KiB) Viewed 10596 times
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

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 »

Yes, this line has toTerm, but I still don't understand that is uncorrect :-)
Attachments
3.JPG
3.JPG (68 KiB) Viewed 10588 times
Vitaly Markov
Active Member
Posts: 40
Joined: 30 Nov 2003 0:01

Unread post by Vitaly Markov »

To come to me on Wednesday (K-192). I will help.
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

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 »

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: 40
Joined: 30 Nov 2003 0:01

Unread post by Vitaly Markov »

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