This forum is meant for questions about the Visual FoxPro Language support in X#.
kevclark64
Posts: 127 Joined: Thu Aug 15, 2019 7:30 pm
Location: USA
Post
by kevclark64 » Thu Feb 27, 2020 4:20 pm
The LIKE() function in XSharp appears to be case insensitive whereas in Foxpro it is case sensitive:
Code: Select all
local lValue as Boolean
lValue=LIKE("Cha*","CHARLES") // False in Foxpro True in Xsharp
As far as I can tell there is no flag or parameter in Foxpro to make LIKE case-insensitive. One would have to use either UPPER() or LOWER() for that.
Chris
Posts: 4978 Joined: Thu Oct 08, 2015 7:48 am
Location: Greece
Post
by Chris » Thu Feb 27, 2020 5:27 pm
Thanks Kevin, confirmed and logged. Currently in X# you need to use the _Like() function for a case-sensitive comparison (instead of the case-sensitive Like()), but I realize this is different to how it works in VFP.
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu