I have a question.
Is there a method addline() in input ?
And is it possible to do this?
Is there a method addline() in input ?
And is it possible to do this?
oldtext = gettext() newtext = oldtext.."\r\n".."this a new line" settext(newtext)
hInput1 = Object.Create("Input1"); hInput1:SetAppendDelimiter("\r\n"); -- Default is an empty string.
hInput1:Append("The text you'd like to see in a new rule."); hInput1:Append(""); -- Add a empty line.
function Addline(StringToAddTo, StringToAdd, Method)
--Newline
if Method == 0 then
return StringToAddTo .. "\r\n" .. StringToAdd;
--Inline
elseif Method == 1 then
return StringToAddTo .. " " .. StringToAdd;
else
return "An error has occured";
end
end
Comment