variable issue - 14/02/06 06:06 PM
I'm setting some variables so that I can address each line in an edit box to use later. I have this code.
and this bit of code in a socket event.
In the first segment of code, my variables are getting set how I thought they would be. It looks like this:
%1 Hey,
%2
%3 This is a multi-line email.
%4
%5 You should get several lines.
%6
%7 THE END
But the email it is sending is just the right amount of lines, only just the variable names, like %1 %2 etc. Any ideas? Thanks.
Code:
on *:dialog:mail:sclick:6:{ sockopen sendmail ServerName 25 var %N = 1 set %bodylen $did(mail,7).lines while (%N <= $did(mail,7).lines) { set % $+ %N $did(mail,7,%N).text inc %N } }
and this bit of code in a socket event.
Code:
var %C = 1 while (%C <= %bodylen) { sockwrite -n $sockname % $+ %C inc %C }
In the first segment of code, my variables are getting set how I thought they would be. It looks like this:
%1 Hey,
%2
%3 This is a multi-line email.
%4
%5 You should get several lines.
%6
%7 THE END
But the email it is sending is just the right amount of lines, only just the variable names, like %1 %2 etc. Any ideas? Thanks.