Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!noose.ecn.purdue.edu!stable.ecn.purdue.edu!yorkw From: yorkw@stable.ecn.purdue.edu (Willis F York) Newsgroups: comp.sys.amiga Subject: Problem with AREXX & CED! Summary: SOmthing weird.... Keywords: AREXX, Ced, Help Message-ID: <1990Sep2.021440.23224@ecn.purdue.edu> Date: 2 Sep 90 02:14:40 GMT References: <1990Sep1.220558.6460@ameristar> Sender: yorkw@stable.ecn.purdue.edu Organization: Purdue University Engineering Computer Network Lines: 46 {} Well I am having a problem (Posibially a BUG!) with CED& AREXX Her is the little program. (or at least a Part of it) i do X = 0 to 5 /* Do it five Times*/ getstring '" "' question.X /* CED comand to get a String Requestor*/ if (result= "") | (result="RESULT") then result= "Ya Made A Boo Bo!" /* Above line checks to see that somthing got entered! */ answer = result /* (A temp var I was using to Try to fix the Problem */ okay1 answer /* Will Show what ya typed, a De-Bug step*/ replace rvar.X answer /* MAin Problem Seems to be with this function*/ /* rvar.X is a string in the TEXT file */ /* I am geting a response to somthing like Your Name? I put in Joe Smith. The Text string is to then get replaced by "Joe Smith" */ end Ok I run this from ced, (with an OPTOPNS RESULTS ect.) the think will work fine as long as i don't have any spaces in the requestor field. If i put in 2+ words only the first one is used ie. The othere get lost somewhere. e. i put "JOE SMITH" and the string gets replaced by JOE speces DO work from CED manually, I just can't get this to work. from REXX...... seems the result has the whole name w/ spaces but the replace foo yoo line loses the following words. I've tried all kinds of quoating but nothing seems to work. (hmmmm. i wponder is a direct replace "JOE SMITH" would work.... If i got just JOE i'd know that there is NO way to fix this problem.... well HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Thanx. -- |\/\/\/| / yorkw@stable.ecn.purdue.edu -------------------------\ | | | Willis F York Better Known as the Pacificist AGNE | | (o)(o) | Full Time Student | C _) | Agricultural Engineering, Purdue University |