Subject |
Re: OLE Unknown error: 8007:0057 |
From |
Mervyn Bick <invalid@invalid.invalid> |
Date |
Thu, 10 Apr 2025 11:37:52 +0200 |
Newsgroups |
dbase.getting-started |
On 2025/04/10 04:21, duncan mackay wrote:
> I have upgraded from dbase SE and the prg file I have been running for about 10 years
> I added a term to the search pattern which contains ascii characters > 127 which comes after \xfo
> and got the error message
> OLE Unknown error: 8007:0057
> on the endif line
>
> oRegExp.pattern = "\xfo"
> IF oRegExp .test(z) == true
> z = ANSI_CharF0(z)
> ENDIF
>
> I use dBase just for databases and low level file formatting
>
> Any ideas as what occured. I am using Windows 11 with 64Gb ram
I assume the space in "oRegExp .test(z) == true" is a transcription typo.
In a regular expression \x requires the addition of two hexadecimal
escape characters to define an ASCII character.
In oRegExp.pattern you have used '\xfo' instead of '\xf0' which should
find ð in your string.
Mervyn.
|
|