- #1
conquertheworld5
- 22
- 0
Hey,beginner programmer with a simple question...
is there any way I can use the where function to search for a string in elements of an array?
I have a structure with two arrays, the first for the date (a string in the form of dd-mm-yyyy i.e. 11-07-2007) and the second has data. I want all the elements that correspond to a certain day.
what I tried to do:
a=where(b.a eq "11-07-2007")
then I expected to get all the spots in the array that had that date... all i got was -1 :-(
is there any way I can use the where function to search for a string in elements of an array?
I have a structure with two arrays, the first for the date (a string in the form of dd-mm-yyyy i.e. 11-07-2007) and the second has data. I want all the elements that correspond to a certain day.
what I tried to do:
a=where(b.a eq "11-07-2007")
then I expected to get all the spots in the array that had that date... all i got was -1 :-(