I don't know if this is a bug or if I'm not doing something correctly, but using the Foxpro dialect the compiler throws an error on this line:
replace field1 with "value", field2 with "value",field3 with "value",field4 with "value"
The error is Parser: unexpected input 'with'
This works fine:
replace field1 with "value", field2 with "value",field3 with "value"
replace field4 with "value"
possible REPLACE issue
possible REPLACE issue
Hi Kevin,
This looks like a preprocessor bug, it seems it only allows 3 "subcommands", while it is instructed to allow any number. You can see the commands in C:Program Files (x86)XSharpIncludedbcmd.xh
Problem logged, thanks for the report!
This looks like a preprocessor bug, it seems it only allows 3 "subcommands", while it is instructed to allow any number. You can see the commands in C:Program Files (x86)XSharpIncludedbcmd.xh
Problem logged, thanks for the report!
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
possible REPLACE issue
Kevin - FYI... They use GitHub Issues to log some bug reports (but not all..).
Anyway, you can track/comment this one here:
https://github.com/X-Sharp/XSharpPublic/issues/300
Anyway, you can track/comment this one here:
https://github.com/X-Sharp/XSharpPublic/issues/300
possible REPLACE issue
Kevin,
Robert
Fixed in next build.Kevin Clark wrote:I don't know if this is a bug or if I'm not doing something correctly, but using the Foxpro dialect the compiler throws an error on this line:
replace field1 with "value", field2 with "value",field3 with "value",field4 with "value"
The error is Parser: unexpected input 'with'
This works fine:
replace field1 with "value", field2 with "value",field3 with "value"
replace field4 with "value"
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
- kevclark64
- Posts: 127
- Joined: Thu Aug 15, 2019 7:30 pm
- Location: USA
possible REPLACE issue
Great, thanks Robert.
Just to clarify, is there any limit in the number of REPLACEd fields on a single line? The VFP limit is 127.
Kevin
Just to clarify, is there any limit in the number of REPLACEd fields on a single line? The VFP limit is 127.
Kevin
possible REPLACE issue
Kevin,
Robert
I think the only limit is the amount of memory in your development computer.Kevin Clark wrote:Great, thanks Robert.
Just to clarify, is there any limit in the number of REPLACEd fields on a single line? The VFP limit is 127.
Kevin
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu