[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Variable frankenstein
- From: Dan - Lintouch user <automacaovida-d2@...>
- Date: Tue, 24 Oct 2006 22:25:50 +0000 (GMT)
How to create new variable from mount name?
Trink. multiples variables and fix sufix ??.large , ??.small ??.tiny
check(S1) ---other file call function
---------
function check(sensor)
if not (sensor .. ".large" == nil) then <--ok not error var -> S1.large
sensor .. ".tiny" = 20 <--- get error var-> S1.tiny
end
print( sensor .. ".tiny") --print
end --end function
Or sugest corret implementation: clear, direct ,not complex.
_______________________________________________________
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!
http://br.mobile.yahoo.com/mailalertas/