NotSoCunning
Technical User
Hi this is my first post here after being recommended by a colleague so go easy. I'm also relatively new to Crystal Reports.
I'm having a problem that when I grab a DateTime field from the database it erases another variable completely even if it's assigned afterwards.
E.g.
Local DateTimeVar date3;
Local DateTimeVar date4;
Local DateVar date2;
Local DateVar anotherdate;
date4 := {Applications.dteValuationDueDate};
anotherdate := DateValue(date4);
date3 := {Applications.dtePaymentExpected};
date2 := DateValue(date3);
As soon as date3 gets assigned date4 gets wiped. I can't see any reason why it should. Later on in the code I have to test the value of date4 so it becomes somewhat problematic.
Anyone with any ideas?
I'm having a problem that when I grab a DateTime field from the database it erases another variable completely even if it's assigned afterwards.
E.g.
Local DateTimeVar date3;
Local DateTimeVar date4;
Local DateVar date2;
Local DateVar anotherdate;
date4 := {Applications.dteValuationDueDate};
anotherdate := DateValue(date4);
date3 := {Applications.dtePaymentExpected};
date2 := DateValue(date3);
As soon as date3 gets assigned date4 gets wiped. I can't see any reason why it should. Later on in the code I have to test the value of date4 so it becomes somewhat problematic.
Anyone with any ideas?