In IUPLua, how do I position a component indicating X (horizontal position) and Y (vertical position)?
I read in the documentation:
It will be changed during the layout computation, except when
FLOATING = YES or when used inside a concre...
I want to send a simple email on Lua, I used the example in official documentation , and returns me always nil . Example:
-- load the smtp support
local smtp = require("socket.smtp")
from = "<[email protected]>"
rcpt = {
"...
I'm using the loadstring function, but I do not know if this is the right way:
a= "st = {b=1, c=2}"
st = {}
b = loadstring(a)
b()
print(st.b)
Is there any simpler way?
Moon has dynamic typing, but after all, is it strongly typed or weakly typed? Each source I consult has a different information, which left me in doubt.
local items = {}
local t = "7 2182, 4 2554, 5 9908"
I wanted to convert using this string and let the table go like this:
local items = {{7,2182},{4,2554},{5,9908}}
Is there a way? using gsub maybe?
I started learning a little about the language Lua and I'm doing some algorithms to practice and one of them should show in the output of the floating point values with 4 decimal places. In C ++ I would use cout << fixed << setpre...
I want to check through the URL if I have any variables passed to via GET .
For example in this url: www.exemplo.htm?teste=teste
if url then -- se na barra de endereço tem um get
return true
else
return false
end
I have a...
I have a string in Lua language. I want to get only the filename part through match ( 403.htm.en ).
Example:
var=[[Content-Disposition: attachment; filename="403.htm.en"
Content-Type: text/plain; name='403.htm.en'...