Another String Question

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
mdjenkins86
Posts: 8
Joined: Fri Nov 11, 2005 12:49 am
Location: Philly

Another String Question

Post by mdjenkins86 »

Is there a way in LUA to execute a string. I am specifically refering to an indirection string.


For example can you
execstring("screen:blit,"& stringcordx & ",100," & pngfilestring)
or
runstring("screen:blit,100,100,picture")

or something to that effect. Baxically, can you run code stored as a string directly from that string.
Durante
Posts: 65
Joined: Sun Oct 02, 2005 6:07 am
Location: Austria

Post by Durante »

loadstring

Unsurprisingly, it's in the book.
mdjenkins86
Posts: 8
Joined: Fri Nov 11, 2005 12:49 am
Location: Philly

Post by mdjenkins86 »

wow...accept my appologies...for some reason I couldn't find this function on my own. Honestly, I had researched this for weeks before I ever posted. Again, I applolgize.
Durante
Posts: 65
Joined: Sun Oct 02, 2005 6:07 am
Location: Austria

Post by Durante »

No need to apologize if you did try to find the answer yourself, sorry if I was a bit brusque. It's just that I pointed to the book about one gazillion times on this forum already, in answer to all sorts of Lua related questions ;)
Post Reply