Public Sub Main() Dim sMode As String = "Server" Print InStr(sMode, "server", gb.IgnoreCase) Print InStr(sMode, "Server", gb.IgnoreCase) End 0 1 Gambas 3.6.0 Regards, Ron.