| View previous topic :: View next topic |
| Author |
Message |
mdjenkins86
Joined: 11 Nov 2005 Posts: 8 Location: Philly
|
Posted: Fri Nov 11, 2005 10:26 am Post subject: Another String Question |
|
|
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. |
|
| Back to top |
|
 |
Durante
Joined: 02 Oct 2005 Posts: 65 Location: Austria
|
Posted: Fri Nov 11, 2005 11:00 am Post subject: |
|
|
loadstring
Unsurprisingly, it's in the book. |
|
| Back to top |
|
 |
mdjenkins86
Joined: 11 Nov 2005 Posts: 8 Location: Philly
|
Posted: Fri Nov 11, 2005 11:26 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Durante
Joined: 02 Oct 2005 Posts: 65 Location: Austria
|
Posted: Fri Nov 11, 2005 3:01 pm Post subject: |
|
|
| 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 ;) |
|
| Back to top |
|
 |
|