I'm trying to build a simple dialog which reads and write to a text file.
It's all working, but the only problem occurs when I'm trying to insert multiple lines in the edit box of the dialog. I thought I could solve it with the "multi return" option, but that didn't work.
Also, I'm still working on how to read all lines and display it in the edit box, because you can't store more lines in a variable, right?
alias info {
set %info $read(info.txt)
dialog -m Info Inf
}
dialog Info {
title Info
size -1 -1 150 110
option dbu
edit %info , 1 , 10 10 130 80,multi return
button "Done", 3, 10 95 40 12, ok
}
on *:dialog:Info:close:*:{
write -c Info.txt
write info.txt $did(UserInfo,1).text