Subject | Re: [IBO] TIBOQuery.Locate |
---|---|
Author | Daniel Rail |
Post date | 2003-04-23T13:26:18Z |
Hi Jason,
At April 23, 2003, 04:15, Jason Wharton wrote:
IB_Parse.pas unit:
Line 1732:
Original:
FirstPos := pos('FIRST', tmpStr);
New Changes:
FirstPos := pos('FIRST ', tmpStr);
Line 1739:
Original:
FirstStr:='First '+getValue(tmpStr,FirstPos+5, PosEnd);
New Changes:
FirstStr:='First '+getValue(tmpStr,FirstPos+6, PosEnd);
I know that there might be a better fix by analyzing the value
returned by getValue to make sure that it is accepted when using
FIRST. The same would go for SKIP. For the moment the changes above
work for me. If you want, I can try to come up with a better fix and
send it to you.
Have a nice day.
--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)
At April 23, 2003, 04:15, Jason Wharton wrote:
> Will someone please send me a sample application with this parsing problem?I was able to correct the problem by make the following changes in the
IB_Parse.pas unit:
Line 1732:
Original:
FirstPos := pos('FIRST', tmpStr);
New Changes:
FirstPos := pos('FIRST ', tmpStr);
Line 1739:
Original:
FirstStr:='First '+getValue(tmpStr,FirstPos+5, PosEnd);
New Changes:
FirstStr:='First '+getValue(tmpStr,FirstPos+6, PosEnd);
I know that there might be a better fix by analyzing the value
returned by getValue to make sure that it is accepted when using
FIRST. The same would go for SKIP. For the moment the changes above
work for me. If you want, I can try to come up with a better fix and
send it to you.
Have a nice day.
--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)