Bevel Button Caption Case Insensitive

I am working on a onscreen keyboard for a touch screen.

But the If statement is case Insensitive.

The folloing code always gives me “SHIFT”

If me.caption="shift" then me.caption="SHIFT" else me.caption="shift" end if


Xojo string comparison is case insensitive. You need to use StrComp Page Not Found — Xojo documentation

if StrComp("me.caption", "shift", 1) then me.caption = "SHIFT" else me.caption = "shift" end

Thanks Bob

I actually had to use:

if StrComp(me.caption, “shift”, 1) = -1 then
end if

My apologies. My pseudocode was wrong as I forgot to use the return value.