Re: Basic Euphoria Sequences
- Posted by Some Slacker <some_slacker at yahoo.com> Feb 10, 2006
- 473 views
don cole wrote: > I'm not sure what your trying to do but I would think: > > </eucode> {{{ > --Writing: > seq[1][1]=atom_data > seq[1][5]=seq_data > > --Reading: > > for x=1 to 14 do > if atom(seq[1][x]) then > treat_as_atom() > elsif sequence(seq[1][x]) then > treat_as_sequence() > end for > > --or > > for x=1 to 14 do > if length(seq[1][x])=1 then > treat_as_atom() > elsif length(seq[1][x])>1 then > treat_as_sequence() > end for > > Hope this helps, > > Don Cole This is somewhat helpful, but I'm still unsure how to best start this sequence. To be more specific the 14 elements will all be sequences for things like timestamps, strings, numbers, more strings, more numbers etc. now for some of the strings i need to be able to seperate out the strings to be a list(for a listview, or a combo box for example) so that some of the elements of the sequence are single strings or just atoms, or formatted for time or currency etc. and some of the elements are themselves their own list of strings... if the data could look something like... {{{time},{time2},{time3},{time4},{string},{string2},{atom},{atom (formatted for currency)}, {atom (again currency)}, {string3} etc. }} now what if the strings are lists for a combo box, can i just add elements to each of these strings? {{{time},{time2},{time3},{time4},{{string1},{string1a}},{{string2},{string2a}}, {atom},{atom (formatted for currency)}, {atom (again currency)}, {string3} etc. }} I hope this makes my problem just a bit clearer, I know I'm unclear, but I don't know what it is I want, I just know I want it!!! LOL! thanks again, Some (Serious) Slacker