Okay, so I have loaded the string, but is the returned value the chunk object? Even so, there is no parameter in either lua_pcall() or lua_call() that indicates which chunk object to execute? Thanks for your response. Regards, Zulfiqar Inayat Malik.