LIKE()

This forum is meant for questions about the Visual FoxPro Language support in X#.

Post Reply
User avatar
kevclark64
Posts: 127
Joined: Thu Aug 15, 2019 7:30 pm
Location: USA

LIKE()

Post by kevclark64 »

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.
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

LIKE()

Post by Chris »

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
Post Reply