In my function I have date variables (_date1, _date2) to set different payment dates by given terms (_pay1, _pay2).
The function is working so var so good, but when the first payment date (_date11) get its value the date variable (_date2) is changing to the value of _date11???
At the next step the value of _date2 changes to the value of _date1:
And when I execute the next step the values of _date1 and _date2 are the 'Sat Mar 02 00:00:00 CET 2013'!?
The main problem for me is that the value of _date21 is always wrong.
I cannot understand how the variables (_date1 + _date2) can change their value?
Servoy 7.4.1