Some other Functions in D.A.V.I.D has been added.
This Function Preserves the Past OriginalSentence.
no reverse person in this Function.
'PAST ORIGINAL SENTENCE.
Dim PastSentence
PastSentence = LastStatement(PrevUserSent)
HalBrain.DebugWatch PastSentence, "Past Sentence"
'FUNCTION: PRESERVE LAST ORIGINAL SENTENCE.
Public Function LastStatement(PrevUserSent)
LastStatement = PrevUserSent
LastStatement = Replace(LastStatement, "[]", "", 1, -1, vbTextCompare)
LastStatement = Replace(LastStatement, "][", " ", 1, -1, vbTextCompare)
LastStatement = Replace(LastStatement, "[", " ", 1, -1, vbTextCompare)
LastStatement = Replace(LastStatement, "]", " ", 1, -1, vbTextCompare)
LastStatement = Replace(LastStatement, ">", " ", 1, -1, vbTextCompare)
LastStatement = Replace(LastStatement, "<", " ", 1, -1, vbTextCompare)
LastStatement = Trim(LastStatement)
LastStatement = HalBrain.SwitchPerson(LastStatement)
End Function
If you don't require the Tag stripper then use this Function instead.
'FUNCTION: PRESERVE LAST ORIGINAL SENTENCE.
Public Function LastStatement(PrevUserSent)
LastStatement = PrevUserSent
LastStatement = Trim(LastStatement)
LastStatement = HalBrain.SwitchPerson(LastStatement)
End Function
This is for writting Script that requires the Last OriginalSentence
that is not reverse person.
Lot's of other Functions have been added.
Jerry[8D]