Cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in array find method with dates

Pioneer
Pioneer

 

var arr: date[]

var date_ := str_to_date("2018/01/01")
arr.append(date_)

print arr.find(date_) -- error pops up: "Incompatible types in find, argument 1: date expected."

Hi,

 

 

  1. Create a date array
  2. Append a date
  3. Try to find that same date in the array
  4. Error pops up! The find method expects a date even if I passed a date...

 

Did I do something wrong or does the software do something wrong here?

 

Thanks.

 

2 REPLIES

Betreff: Bug in array find method with dates

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello bpinarci,

 

This is indeed a bug in the software. It will be fixed in the next maintenance pack.

Thanks for reporting it!

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Betreff: Bug in array find method with dates

Pioneer
Pioneer

Thanks. In the meantime I have to loop in the array and find the value for myself.

Have a good day!