Click here to Skip to main content
11,706,142 members (57,213 online)

C / C++ / MFC

 
AnswerRe: How to make an edit box accept only digits from 0 - 9 in mfc.? Pin
Freak3028-Apr-13 22:10
memberFreak3028-Apr-13 22:10 
GeneralRe: How to make an edit box accept only digits from 0 - 9 in mfc.? Pin
mbatra3128-Apr-13 22:35
membermbatra3128-Apr-13 22:35 
GeneralRe: How to make an edit box accept only digits from 0 - 9 in mfc.? Pin
Vaclav_Sal29-Apr-13 6:11
memberVaclav_Sal29-Apr-13 6:11 
GeneralRe: How to make an edit box accept only digits from 0 - 9 in mfc.? Pin
mbatra3129-Apr-13 18:54
membermbatra3129-Apr-13 18:54 
GeneralRe: How to make an edit box accept only digits from 0 - 9 in mfc.? Pin
Vaclav_Sal30-Apr-13 3:47
memberVaclav_Sal30-Apr-13 3:47 
GeneralRe: How to make an edit box accept only digits from 0 - 9 in mfc.? Pin
mbatra3130-Apr-13 19:27
membermbatra3130-Apr-13 19:27 
AnswerRe: How to make an edit box accept only digits from 0 - 9 in mfc.? Pin
Rolf Kristensen29-Apr-13 4:18
memberRolf Kristensen29-Apr-13 4:18 
Questionproblem in clips programming Pin
a.fatemeh28-Apr-13 2:02
membera.fatemeh28-Apr-13 2:02 
hi every one, i'm trying to write a simple code in clips but I'm getting this error which i can't find what the problem is.
I would be grateful if any one could help.

Defining deffunction: user-Question
Defining defrule: Rule0
[PRNTUTIL2] Syntax Error: Check appropriate syntax for defrule.

ERROR:
(defrule MAIN::Rule0
(not (tank-is-full ?)
=>

this is part of my code:

<blockquote class="FQ"><div class="FQA">Quote:</div>;;;************
;;;* Functions*
;;;************
(deffunction user-Question(?question ?answer $?values)
   (printout t ?question)
   (bind ?answer(read))
   (stringp ?answer)
 =>
    (bind  ?answer(lowcase ?answer))
    
  (while (not (member$ ?answer ?values)) do
      (printout t ?question)
      (bind ?answer(read))
      (stringp ?answer)
    =>
    (bind  ?answer(lowcase ?answer))
 )
 ?answer
)
 
  
;;;**********************
;;;* ENGINE STATE RULES *
;;;**********************
 
(defrule Rule0
    (not (tank-is-full ?)
 =>
    (bind ?tank-is-full user-Question("Is there any petrol in the tank(Yes|No)?"yes YES Yes NO no No)  
   (assert(tank-is-full ?tank-is-full)
 )
;;;****************************
</blockquote>

AnswerRe: problem in clips programming Pin
ThePhantomUpvoter28-Apr-13 2:13
memberThePhantomUpvoter28-Apr-13 2:13 
GeneralRe: problem in clips programming Pin
a.fatemeh28-Apr-13 2:19
membera.fatemeh28-Apr-13 2:19 
GeneralRe: problem in clips programming Pin
Richard MacCutchan28-Apr-13 2:29
mvpRichard MacCutchan28-Apr-13 2:29 
GeneralRe: problem in clips programming Pin
a.fatemeh28-Apr-13 2:51
membera.fatemeh28-Apr-13 2:51 
GeneralRe: problem in clips programming Pin
ThePhantomUpvoter28-Apr-13 2:31
memberThePhantomUpvoter28-Apr-13 2:31 
AnswerMy Vote of 1 Pin
Keith Barrow28-Apr-13 7:45
mentorKeith Barrow28-Apr-13 7:45 
GeneralRe: My Vote of 1 Pin
a.fatemeh28-Apr-13 22:46
membera.fatemeh28-Apr-13 22:46 
GeneralRe: My Vote of 1 Pin
H.Brydon30-Apr-13 19:02
memberH.Brydon30-Apr-13 19:02 
QuestionHow to make a EXE in windows Pin
OmarSH27-Apr-13 7:10
memberOmarSH27-Apr-13 7:10 
AnswerRe: How to make a EXE in windows Pin
ThePhantomUpvoter27-Apr-13 16:50
memberThePhantomUpvoter27-Apr-13 16:50 
GeneralRe: How to make a EXE in windows Pin
OmarSH28-Apr-13 6:29
memberOmarSH28-Apr-13 6:29 
GeneralRe: How to make a EXE in windows Pin
dusty_dex28-Apr-13 7:00
memberdusty_dex28-Apr-13 7:00 
GeneralRe: How to make a EXE in windows Pin
«_Superman_»28-Apr-13 19:18
member«_Superman_»28-Apr-13 19:18 
GeneralRe: How to make a EXE in windows Pin
Richard MacCutchan28-Apr-13 22:25
mvpRichard MacCutchan28-Apr-13 22:25 
AnswerRe: How to make a EXE in windows Pin
Brandon-X1200028-Apr-13 11:29
memberBrandon-X1200028-Apr-13 11:29 
GeneralRe: How to make a EXE in windows Pin
Richard MacCutchan28-Apr-13 22:23
mvpRichard MacCutchan28-Apr-13 22:23 
GeneralRe: How to make a EXE in windows Pin
OmarSH29-Apr-13 11:07
memberOmarSH29-Apr-13 11:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 28 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid