Doedit fails
Kenneth Brody
kenbrody at bestweb.net
Wed Aug 2 06:30:10 PDT 2006
Quoting GCC Consulting (Wed, 2 Aug 2006 09:08:36 -0400):
> Last test in 5.6 and found the problem.
>
> It appears the starting capital letter causes the title edit to fail.
That's because your edit tells it to fail in that situation.
(I assume you mean that the input was "Ms" rather than "ms".)
This is why it's important to show the actual input data that
causes the "failure".
> To test the problem I did a mid statement of the field and replaced the
> capital M with a lower case M and ran the resulting value through doedit
> and it worked.
Or just tell filePro to ignore case on the input data, by starting
the edit with "^".
[...]
> > I retested this problem using fp 1.0.14 and found that the
> > edit works there.
I don't think so. Were you using the same data, with the capital
"M"?
[...]
> > I have the following edit
> > title ?!1! <Mr.>|!2! <Mrs.>|!3! <Miss>|!4!
> > <Ms.>|!5!<Dr.>|"Mr."|"Mrs."| "Miss" | "Ms."|"Dr."|fa1
> > fa1 ?!mrs!<Mrs.>|!miss!<Miss>|!dr!<Dr.>|!mr!<Mr.>|!ms!<Ms.> |fa
> > fa ?!MRS!<Mrs.>|!MR.!<Mr.>|!MS.!<Ms.>|!MR!<Mr.>|!MS!<Ms.>
[...]
> > Tested in the debugger doedit("ms",title,"4") and got Ms.
> > Which is correct.
This is also why it's important to test using the same data as
your "real" data.
[...]
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list