From: Robert Klemme Date: 2008-07-04T15:41:54+09:00 Subject: Re: creating dynamic hashmap On 04.07.2008 07:03, Sameera Gayan wrote: > I have a question about creating a dynamic hash map. I'm using "gruff" > and in that , the lables parameter should be like this (as in example) > > g.labels = { 0 => 'Mon', 2 => 'Wed', 4 => 'Fri', 6 => 'Sun' } > > in my case, above dates are dynamic and user will select the date range. > So i need to create the hashmap dynamically. > > can i use a loop, or ..... how can i do this, > > any reply will greatly appriciated... Can you be more specific about your problem? What kind of user input do you expect? How do you want it to be translated into a Hash? etc. robert