Force or determine case?
I've searched the ObjectScript reference for any instances of Upper, Lower or Case and the only thing is a case/switch statement. In all the documentation I can only find SQL and Cache Basic references for things like UCASE.
So how do I do this in ObjectScript?
For instance, if (ucase(dtype)="G") { }
Discussion (2)1
Comments
Look at $zconvert (abbreviated $zcvt):
http://docs.intersystems.com/cache20152/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_fzconvert
For example:
USER>w $zcvt("thisIsATest","U")
THISISATEST
USER>w $zcvt("thisIsATest","L")
thisisatest
Thanks!