sequence and strings (newbie help wanted)
- Posted by jc at cknet.net Mar 14, 2001
- 448 views
Hello, Just begining with Euphoria, this is my first script. Trying to get the command_line() and parse through it. Thought I would start by throwing the contents of command_line() on the screen: include get.e object cmd cmd = command_line() puts(1, cmd) vwait = wait_key() -- putting the wait_key() in just so my screen remain up I get an error message saying that I have a sequence in a character string. In my ex.err I find: cmd = {{67'C',58':',92'\',69'E',85'U',80'P',72'H',79'O',82'R',73'I', 116't',46'.',101'e',120'x',119'w'}} Is this how Euphoria internally stores a string/sequence. Obviously I don't understand something fundamental here with strings and sequences. Also, looking for a word() function, but not finding one in Euphoria. Is there a built in function that will parse through command_line() returning the Nth word ? TIA Jim Chapman