JustAnotherPureBasicEditor(?) handles it the right way imo, as it uses the function/variable/constants definition as the casing, and whenever you use the reference in code it's automatically converted to the same case, word for word as the original def..So whatever casing you use, it reverts to the original's.
That's the way VB has handled it forever... That's definitely the ideal solution. The compiler doesn't enforce it, but the editor you use DOES.