In the code below when adding text to the notes area I would like the text to look like this:
hello
this
is
me
Insted of this:
here's the code:
function UpdateRecord(nID)
--Capture input fields to update the record.
local strWho = Input.GetText("account_Input");
local strLog = Input.GetText("login_Input");
local strPass = Input.GetText("password_Input");
local strNote = Input.GetText("notes_Input");
--Check to see that the above entries are valid
if strWho ~= "" and strLog ~= "" and strPass ~= "" and nID > 0 then
--Insert new account information
SQLite.Query(db, "UPDATE accounts SET who = "..Enclose(strWho)..", login = "..Enclose(strLog)..", pass = "..Enclose(strPass)..", notes = "..Enclose(strNote).." where ID = ".. nID, nil);
--Clear the Inputs
ClearInputs();
return 0;
else
Dialog.Message("Error", "Please provide an Account name, Login and Password before trying to Update an entry");
return nID;
end
end
How would I do this?![]()


