ChewCheeLim

"Value does not fall within the expected range" Error with AFTime object

Discussion created by ChewCheeLim on Apr 1, 2013
Latest reply on Apr 1, 2013 by ChewCheeLim

Hi, Wanted to do some test in my dev by retrieving Bad data value. (Yes, 'Bad' data.) 

 

 

 

 

 
 AFTime oDate = new AFTime("3/22/2013 9:00:11 AM");
                                        aPiValue = aPiPoint.Data.ArcValue(oDate, RetrievalTypeConstants.rtAtOrAfter);

 But kept getting this error message:- "Value does not fall within the expected range"

 

I do believe the AFTime object is set properly as it's set to Local Time which is what I want. But then , the next line of code erred out.

 

any advice?

Outcomes