Re: sequence question

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

On 2 Feb 2001, at 23:52, LEVIATHAN wrote:

> > Ok, why can't i do this:
> > 
> > Syntax error - expected to see possibly 'end', not '['
> >    theword[loop] = {'e','e','e','e','e','E','E','E','E'}[loop]
> 
> I assume you can't add [#] to the end of a sequence. But it doesn't 
> make sense to me... the one below makes more sense, Kat...
> 
> > array = {'e','e','e','e','e','E','E','E','E'}
> > theword[loop] = array[loop]
> > 
> > it's ok.
> 
> Yeah, makes sense, makes sense... {} isn't considered a 
> procedure, perhaps?

Wasn't supposed to be a procedure, i was hoping to save a var (old habits) and 
explicitly state the contents of the var and index into them directly, rather
than declare
a var, assign the contents to the var, and then index into the var.. oh well,
it's ok. Just
seemed to me it should work.

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu