forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Another String Question

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
mdjenkins86



Joined: 11 Nov 2005
Posts: 8
Location: Philly

PostPosted: Fri Nov 11, 2005 10:26 am    Post subject: Another String Question Reply with quote

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
View user's profile Send private message
Durante



Joined: 02 Oct 2005
Posts: 65
Location: Austria

PostPosted: Fri Nov 11, 2005 11:00 am    Post subject: Reply with quote

loadstring

Unsurprisingly, it's in the book.
Back to top
View user's profile Send private message
mdjenkins86



Joined: 11 Nov 2005
Posts: 8
Location: Philly

PostPosted: Fri Nov 11, 2005 11:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Durante



Joined: 02 Oct 2005
Posts: 65
Location: Austria

PostPosted: Fri Nov 11, 2005 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group