Author Topic: Detecting Hard Words  (Read 2476 times)

onthecuttingedge2005

  • Guest
Detecting Hard Words
« on: December 28, 2005, 10:28:52 pm »
Here is a technique I found that works rather well for detecting words that seems to have some difficulty in being detected.

Sometimes some specific words are hard to detect in debugging.

Code: [Select]
If DetWord = "" Then DetWord = 0
ChckSent = HalBrain.AlphaNumericalOnly(OriginalSentence)
ChckSent = Replace(ChckSent, "'RE", "", 1, -1, vbTextCompare)
ChckSent = Replace(ChckSent, "'S", "", 1, -1, vbTextCompare)
ChckSent = Replace(ChckSent, "'LL", "", 1, -1, vbTextCompare)
ChckSent = Replace(ChckSent, "'D", "", 1, -1, vbTextCompare)
ChckSent = Replace(ChckSent, "'T", "", 1, -1, vbTextCompare)
ChckSent = Replace(ChckSent, "'R ", " ", 1, -1, vbTextCompare)
ChckSent = Replace(ChckSent, "'M", "", 1, -1, vbTextCompare)
MarkSent = ">" & ChckSent & "<"
If InStr(1, MarkSent, ">I ", 1) > 0 Then DetWord = 1
If InStr(1, MarkSent, " I<", 1) > 0 Then DetWord = 1
If InStr(1, MarkSent, " I ", 1) > 0 Then DetWord = 1
HalBrain.DebugWatch DetWord, "Detect A Word"

The variable can be passed down into code easly.

Jerry[8D]
« Last Edit: December 29, 2005, 05:51:17 am by onthecuttingedge2005 »

moreis62

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://www.myway.com/
Detecting Hard Words
« Reply #1 on: December 29, 2005, 04:22:32 am »


KEEP UP THE GOOD WORK.
« Last Edit: December 29, 2005, 04:24:17 am by moreis62 »
ISMAEL LEDESMA.