Re: Array of Hashes in an array of hashes - Complicated!



Matt Brooks wrote:
2.) Is there a way to make the 'signal_index' a variable? I would like
to be able to store the contents of a variable as the name that is then
associated with a value.

like this possibly? I want the contents of parameter_name to be the
label or name associated with the contents of the variable
parameter_value
@signals[signal_index].add_variable(#{parameter_name}, parameter_value)

nevermind on #2, I got that to work!

@signals[signal_index].add_variable(parameter_name.to_sym,
parameter_value)
--
Posted via http://www.ruby-forum.com/.

.



Relevant Pages

  • Re: Help finding burner socket for old stove.
    ... Name says "Westinghouse Continental". ... The label says 20.04 Kw. ... dropout with an earring who wouldn't know a heating element from a hole in ... Maybe someone knows a store. ...
    (alt.home.repair)
  • Re: Easy? How to store a value for later use.
    ... I wasn't in the office for a while; I just wanted to thank you cause I've used the sample code you gave me and it works perfectly. ... So you're trying to count the records in tables, not actually store some ... > Hey Nikos and Phil, ... >> How do you get the recordcount to put in the label in the first ...
    (microsoft.public.access.modulesdaovba)
  • Re: Help finding burner socket for old stove.
    ... The bad one actually is filthy but I could ... Name says "Westinghouse Continental". ... The label says 20.04 Kw. ... Go find a better parts store where the guy behind the counter is a real appliance part guy. ...
    (alt.home.repair)
  • discover array offsets within initializer?
    ... Is there any way to place labels in an array initializer ... and have subsequent mentions of that label name ... enum opcode {CLR, INC, LOAD, STORE, BRZ, HALT}; ...
    (comp.lang.c)
  • Re: Removing rows from a DataTable is VERY slow
    ... Datagrids are painfully slow with over one or two thousand records. ... use a dataset to store and manipulate the data then add them ... to a label. ...
    (microsoft.public.dotnet.framework.adonet)