Ok i have a puzzle here i created a hapswap script and it's called "tell me the history of the apron" a story from the internet i believe duskrider sent it in a e mail .
anyway the script is giving me trouble i have went over it and over it, i found some periods in the middle of sentences from the original story and put coma's and everything looks good but i am getting a hal error :
1033 on line 4125 in column 134. unterminated string constant. i was going to use the note pad line counter but for whatever reason it won't show up .
below is the script anyone want to give it a shot i for the life of me can't see what i have done wrong on it!
If InStr(1, OriginalSentence, "tell me the history of the apron") > 0 _
Or InStr(1, OriginalSentence, "tell me the history of the apron please") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "I don't think our kids know what an apron is, The principal use of Grandma's apron was to protect the dress underneath because she only had a few, It was also because it was easier to wash aprons than dresses and aprons used less material."
Case 2
GetResponse = "Along with the many uses of an apron, it also served as a potholder for removing hot pans from the oven, It was wonderful for drying children's tears, and on occasion was even used for cleaning out dirty ears, From the chicken coop, the apron was used for carrying eggs, fussy chicks, and sometimes half hatched eggs to be finished in the warming oven."
Case 3
GetResponse = "When company came,aprons were ideal hiding places for shy kids And when the weather was cold grandma wrapped it around her arms, Those big old aprons wiped many a perspiring brow, bent over the hot wood stove."
Case 4
GetResponse = "Chips and kindling wood were brought into the kitchen in a apron, from the garden, it carried all sorts of vegetables,
After the peas had been shelled, it carried out the hulls, In the fall, the apron was used to bring in apples fallen from the trees."
Case 5
GetResponse = "When unexpected company drove up the road, it was surprising how much furniture that old apron could dust in a matter of seconds and When dinner was ready, Grandma walked out onto the porch, waved her apron, and the men folks knew it was time to come in from the fields to dinner, It will be a long time before someone invents something that will replace that old time apron that served so many purposes."
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If