[JW Lua] make staff names uppercase

Joseph Weidinger jsphweid at gmail.com
Fri May 1 19:50:40 CEST 2015


Hi Jari,

I'm modifying your Change Staff Instruments example to change my staff
names to uppercase instead.  I get hung up using Replace.  It works great
when you already know the name but I can't find a way to get it to work
when the name is different and unknowable.

I imagine it to work along the lines of:
thestring:Replace(thestring, string.upper(thestring))

This of course doesn't work because thestring is actually an object of some
kind, not a literal string.  But it's not a table I can parse either, maybe
more specifically "userdata" whatever that is. Probably C and not Lua.  Any
suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20150501/e2297f80/attachment.htm>


More information about the JWLua mailing list