Hmpf, ähh, yeah, but it's the default function which YOU delivered with rainlendar as far as I understand!?
| Code: |
function Private_SetIcalProperty(strComponent, strProperty, strValue)
s, e = string.find(strComponent, strProperty .. ":.-\r\n")
if (s and e) then
-- The property was found -> replace the value
return string.gsub(strComponent, strProperty .. ":(.-)\r\n", strProperty .. ":" .. strValue .. "\r\n")
else
-- The property is missing -> create a new one
return string.gsub(strComponent, "END:", strProperty .. ":" .. strValue .. "\r\nEND:")
end
end
|
it's not my own function...