itpanarub
19th November 2018, 03:05
Hello anybody,

i want to ask, what is the meaning (1;1) after lattr.prline(1;1).
can i use this function to give breakline for my field?


field.sls401.txta:
before.print:
validate.textline()

function validate.textline()
{
if ( lattr.prline(1;1) = ">" ) then
lattr.prline = lattr.prline(2)
else
if ( lattr.prline(1;1) = "<" ) then
lattr.print = false
endif
endif
}

mark_h
19th November 2018, 14:35
What it is doing is checking the first character of the text line. In our system if the first character of a line of text is "internal only text" it starts with "<". So the above piece of code skips printing internal notes. I am on 4c4 so not sure about LN, assuming it might be the same.

bdittmar
19th November 2018, 15:30
Hello,
as Mark suggest,
in LN it's same as in BIV.

validate.textline()


Regards

itpanarub
21st November 2018, 11:58
What it is doing is checking the first character of the text line. In our system if the first character of a line of text is "internal only text" it starts with "<". So the above piece of code skips printing internal notes. I am on 4c4 so not sure about LN, assuming it might be the same.

hello mark_h ,

thanks for your explain :)

itpanarub
21st November 2018, 11:59
hello mark_h and bdittmar

thanks for your explain. :)


regards
susilo