Re: Transforming a Sequence from a Pattern

new topic     » goto parent     » topic index » view thread      » older message » newer message
euphoric said...

I need help duplicating a sequence structure... here's what I mean:

I've got two sequences:

fields = {{{},{}},{},{}} 
ftypes = ",.E+" 

The 4 total "bottom-level" elements in fields correspond to the 4 total elements in ftypes, though the structure for each sequence is different.

What I'd like to do is transform ftypes into the same structure as fields, so that

ftypes = {{',','.'},'E','+'} 

Is that clear? Who's got a function for this that works with 4.0? smile

Since I know what you're up to* smile I'll give you a hint. Take a look at INFO.INDICES in TABLEDEF. Then you can use either the seq_store() in eusql or the equivalent (IIRC) in std/sequence.e

Matt

* Enhancing eusql to deal with possibly damaged records

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu