0 Members and 1 Guest are viewing this topic.
function strFind(str,ch) local chPos chPos=nil for i=1,string.len(str) do if string.sub(str,i,i)==ch and not chPos then chPos=i end end return chPosend
function on.paint(gc) gc:begin()-- draw gc:setFont("sansserif", "b", 10) gc:drawString("Hello World", 0, 0, "top") gc:finish()end
msg = ""function on.paint(gc) gc:drawString(msg,10,10,"top")endfunction on.charIn(ch) msg = msg .. ch platform.window:invalidate()end
(maybe there is already a topic or a place for this, even in another web site as Inspired Lua for example ? If so, please let me know. )
Why 3?It was a cool way of fetching external data
Well, it's just 18px