alex21
Joined: 20 Apr 2011 Posts: 75 Location: Australia
|
Posted: Fri Sep 23, 2011 3:05 am Post subject: .Net System.DateTime not working? |
|
|
Hello,
I have been trying access the properties on the .Net System.DateTime class, however it is not working and all properties result in '1'.
For Example:
Code: |
OBJECT("System.DateTime"), INTENT(IN) :: testDate
INTEGER :: Day
INTEGER :: Month
INTEGER :: Year
Day = testDate%Day
Month = testDate%Month
Year = testDate%Year
|
However after the above code has executed the variables Day, Month and Year will all be '1' and not the values that were sent into the subroutine.
I have also expierianced some very strange runtime problems when trying to get around this issue using a data helper class i coded to interface with FORTRAN.
It seems that the pointer to the DateTime object is being lost or misrepresented.
Can anyone please explain how I can access these properties on a DateTime object?
Thanks,
Alex. |
|