Page 1 of 1

PROBLEM! Exception: expectedChar (runtime_exception)

Posted: 9 May 2016 7:12
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(["плохой", "хороший"]).

Posted: 9 May 2016 8:17
by Thomas Linder Puls
The problem appears to be in line 47. It seems to be in toTerm or something like that.

Posted: 9 May 2016 8:55
by Callovrat
Yes, this line has toTerm, but I still don't understand that is uncorrect :-)

Posted: 9 May 2016 21:00
by Vitaly Markov
To come to me on Wednesday (K-192). I will help.

Posted: 9 May 2016 21:03
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.

Re:

Posted: 11 May 2016 6:55
by Callovrat
Vitaly Markov wrote:To come to me on Wednesday (K-192). I will help.
Vitaly, hello, can you help me?

Posted: 11 May 2016 16:13
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.