getPropertyValueByTag
getPropertyValueByTag
QsSettings:getPropertyValueByTag(tag: stringa)
Restituisce il valore (stringa) della proprietà in base al tag. ATTENZIONE: se il tag non esiste lancia un errore (non ritorna nil); proteggere la chiamata con call() (vedi esempio).
Esempio:
QsSettings():getPropertyValueByTag("ColoreEvid")
Esempio 1. Esempio getPropertyValueByTag
-- ATTENZIONE: stessa criticità di getProperty — usare call()
local qs = QsSettings()
local ok, val = call(function() return qs:getPropertyValueByTag("ColoreEvid") end)
if ok then print("\nvalore: " .. tostring(val)) end