Text Value with conditions
Posted: Wed Dec 12, 2018 4:05 pm
Hi,
I need to set the value of Text56 in an expression using these rules:
var STApp = " titolo " + qApportiRitiri.DESTITB + " qtà " + qApportiRitiri.QUANTI + " al prz/valore unitario di ";
if (qApportiRitiri.PREZUNI == 0)
STApp = STApp + qApportiRitiri.RATEON
else
STApp = STApp + qApportiRitiri.PREZUNI;
if (Length(qApportiRitiri.DESCRI) <> 0)
Text56.Text = qApportiRitiri.DESCRI
else if (qApportiRitiri.OPELIR == 'S')
Text56.Text = qApportiRitiri.DESTAB
else if (qApportiRitiri.TIPOMO == 'A')
Text56.Text = qApportiRitiri.DESAVE + STApp
else Text56.Text = qApportiRitiri.DESDAR + STApp;
How can I do it?
Thank you
I need to set the value of Text56 in an expression using these rules:
var STApp = " titolo " + qApportiRitiri.DESTITB + " qtà " + qApportiRitiri.QUANTI + " al prz/valore unitario di ";
if (qApportiRitiri.PREZUNI == 0)
STApp = STApp + qApportiRitiri.RATEON
else
STApp = STApp + qApportiRitiri.PREZUNI;
if (Length(qApportiRitiri.DESCRI) <> 0)
Text56.Text = qApportiRitiri.DESCRI
else if (qApportiRitiri.OPELIR == 'S')
Text56.Text = qApportiRitiri.DESTAB
else if (qApportiRitiri.TIPOMO == 'A')
Text56.Text = qApportiRitiri.DESAVE + STApp
else Text56.Text = qApportiRitiri.DESDAR + STApp;
How can I do it?
Thank you