uppercase

Is it possible to set a field always to uppercase (right at the beginning)
without doing a method afterwards which does: field = field.toUpperCase()

This is what I have been looking for too. Experimented a little also but didn’t find it…

Would like a format function like ‘uppercase’ though

added to planning ‘U*’ as uppercase formatter and ‘L*’ as lowercase. in field format property

Great!

Jan Blok:
added to planning ‘U*’ as uppercase formatter and ‘L*’ as lowercase. in field format property

Damn, all I have to say about the pace at which you guys fix/enhance these things is AMAZING. Unlike some other companies, you are creating a “sense of contribution” by those suggesting features. The benefit is the testing and bug catches by users. With a strong sense of community that “feels” like being part of the whole development process you will gain a strong following.

As before, my hat goes off to the fabulous devlopment team!

Matt, you spoke like I could have done. From the bottom of my heart I agree 100% with you…

So you guys, yeah you developers with Servoy… THANK YOU!!!

closed case 39761 since use of ‘L’ and ‘U’ this is present/possible in display format quite a while at least 3.5

wow, a case closed after 5 years! :lol:

Thanks Jan! :wink:

The format characters U and L in a field format are one for one on input characters. So if I have a format of “UUUU” that means only 4 characters allowed and all 4 will be forced to uppercase.

THIS is great for short length fields. But if I have a field 255 characters in length then typing in 255 characters in the format is cumbersome. In this case the “ToUppercase” method would be used.

IS there any other way to specify in the format field all characters to the max length of the field be converted to uppercase (or lower case etc)? I was hoping for a pattern match like in Regexp to signify all characters.

If the format starts with U or L all characters have to be of same casing

I am not sure what you mean. If I enter a format of ‘U???’ and enter ‘abcdef’ then it is displayed as ‘Abcdef’. If I have a format of ‘UUUUUU’ then I get the expected ‘ABCDEF’ displayed. If I have a field length of large size (I had 255) then I would have to put in ‘UUUUU…U’ i.e. a ‘U’ for each for the 255 character positions. What I was hoping for was a short hand notation like ‘U+’ which means Uppercase for all characters after the first U. Now I have to use the method to do the uppercase conversion (not a bad thing but it seems slower than the built in formatter). I have not tried it but I wonder what the maximum buffer size is for the formatter? Would 255 be ok?
Regards
Tom