Irv: Re: For loop and a newbie

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

Hello Irv

> but I'm curious why you
> are using atom(vcommands[1])?
> The command line parameters are _always_ strings, so, even if
> you type "ex myprog One 2 Three 4",  each item is a string.

Ignorance plain and simple. This simple little routine has produced a
significant amount of frustration, trying to learn EU and get this thing to
work. I was under the impression that an atom was an individual number, I
was thinking that this would test and see if a given parameter was a number
or a 'string'. I'm simply trying to get the command line parameters and make
sure they are numbers (ascii codes) in a range of 0 to 255. After I check
them out I'm going to send them to the printer. This little routine (that
I'd written years ago in pascal) is to send control codes to printers or
cash drawers. Believe it or not, people pay me money to program in another
environment, but I'm feeling like less than a rank beginner! What I think I
want are simple chr() and asc() functions. I guess it's back to the drawing
board on this 'sequence, atom, integer' business.

Thanks for your help

Jim Chapman

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

Search



Quick Links

User menu

Not signed in.

Misc Menu