Questions tagged as 'lua'

1
answer

IupLua - Background of dialog

How do I define an image as the background of a Dialog? In the documentation says:    BACKGROUND (non inheritable): Dialog background color or image. Can be   a non inheritable alternative to BGCOLOR or can be the name of an   image to be til...
asked by 08.01.2015 / 21:29
1
answer

Luasql (Sqlite3) accepting only a "value"

I'm trying to create a simple table, just with names, but when I enter a value, you can not enter any more. How I am doing: require 'luasql.sqlite3' local env = luasql.sqlite3() local con = env:connect('database.s3db') con:execute([[ CREATE...
asked by 03.03.2015 / 15:40
1
answer

Get string table

I'm trying to get a table as a string. EX: tabela = {1, b=2, {c=3}} print(getTableString(tabela)) If this function existed, and it worked, it would return: -> tabela = {1, b=2, {c=3}} Is there any way to do this?     
asked by 22.11.2014 / 05:13
1
answer

Concatenate variable names with numbers in LUA

I have a problem, I need to do the following: I have a variable that holds a number (x = 3 for example) And I have a table like this: tabela={} tabela.var1='teste1' tabela.var2='teste2' tabela.var2='teste3' tabela.var2='teste4' I need...
asked by 09.07.2018 / 23:52
1
answer

How to reduce moon processing? or muti hash?

I have a table with several tables of 5 positions where the first two are the position in a Cartesian plane. --Table with water collors colors = {{r=15,g=94,b=156},{r=35,g=137,b=218},{r=28,g=163,b=236},{r=90,g=188,b=216},{r=116,g=204,b=244...
asked by 27.12.2017 / 18:32
1
answer

Is there a table decoder in Lua?

I'm wondering why I want to know if one table is the same as another, whether it's an empty table or something else.     
asked by 23.07.2017 / 23:42
1
answer

Has Api's moon language for Python

I've heard that there are api of the moon language to be used in spreadsheets with other languages like C, C ++, C #, is there an api of this for Python?     
asked by 04.03.2017 / 03:51
0
answers

Doubt with Notepad ++

How do I do Notepad ++ for example: function test() var=true end instead of function test() var=true end I do not know how to call this action, but whenever I start a function or something, it adds 4 spaces until I enter end...
asked by 27.01.2017 / 03:15
0
answers

How do I put this question in the Lua language?

function potencia (x,y) if y==0 then return 1 else return (x*potencia(x,y-1)) end algoritmoPerf = io.write("probabilidade de que cada algoritmo apresente perfeito funcionamento: ") naoperf = 1 - algoritmoPerf x = io.write("D...
asked by 23.05.2016 / 20:21
1
answer

Pass C struct to moon script

When I have to pass my structure Book to the script in Lua , the method writes the value to nil .    How do I pass the Book structure to my moon code? main.c: #include <lua.h> #include <lualib.h> #incl...
asked by 18.04.2016 / 08:41