[Thread Prev][Thread Next][Index]

Re: [ferret_users] Define, change/add/remove element in an array.



listTemp[i=1] = `temp5 is not valid in Ferret. The left-hand side of a definition is always a simple variable name.

--
Akshay Hegde,                                    
Forum Advisor                                       
The Unix and Linux Forum Users                    
http://www.unix.com                              
http://in.linkedin.com/pub/akshay-hegde/59/b3/b1b




On Wed, Aug 20, 2014 at 10:54 AM, Nicolas Freychet <nicolas.freychet@xxxxxxxxx> wrote:
Hi everyone,

Is there a simple comand to change/add elements inside an array.

For instance, I defined a single row array with :

         let listTemp = {`temp1`,`temp2`,`temp3`,`temp4`}

But then, I'd like to add new values `temp5`, `temp6`.... or change `temp1` to a new value.
I tried something like : "listTemp[i=1] = `temp5`" but it doesn't work.

If anyone knows how to do it....

Thanks,
Nicolas


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement