home *** CD-ROM | disk | FTP | other *** search
- Path: news.compuserve.com!newsmaster
- From: mimetz@amiga.de (Michael Metz)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Arexx problem with vars
- Date: Sun, 11 Feb 1996 12:54:27 GMT
- Organization: AMIGA Technologies GmbH
- Message-ID: <4fkosl$jm0@dub-news-svc-1.compuserve.com>
- References: <68771100@0humpty.tomate.tng.oche.de>
- NNTP-Posting-Host: ad54-022.compuserve.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- humpty@TOMATE.TNG.OCHE.DE (Andreas Mixich) wrote:
-
-
- > Hi,
-
- >I used to do a
-
- >list.0 = list.0 + 1
-
- >This worked.
-
- >Now I have to seperate between two lists. So I did a
-
- >IF valuexyz = xyz THEN
- > x = L
- >ELSE
- > x = R
-
- >x||list.0 = x||list.0 + 1
-
- >This results in an "Arithmetic Conversion Error". Why ??
-
- because || is not arithmetic operator. Just try to concat the
- variable name as you need it before using it in a calculation.
- This should work.
-
- >I need the placeholder 'x||list' in a function, that may process a list.
-
- >It is (abstract)
-
- >bla = DoSomething(x||list)
-
- >for different lists, but do not want to write (in the script these are
- >large procedures ;-)) :
-
- >IF valuexyz = xyz THEN
- > bla = DoSomething(Llist)
- >ELSE
- > bla = DoSomething(Rlist)
-
- >Any ideas ? Thanks.
-
- if valuexyz = xyz then xlist = L||list else xList = R||list
-
- bla = DoSomething(xlist)
- ....
- >--
- >Ciao, Andreas
- >Internet: humpty@tomate.tng.oche.de
- >FIDO : 2:244/1544.14
-
- >0x2B | ~0x2B -Hamlet
-
-
- -----------------------------------------------------------
- Michael Metz/AMIGA * Technologies GmbH * Berliner Ring 89
- D 64625 Bensheim * Tel: +49 (0)6251-802 100 * Fax:.-802 179
- Priv.: 71001.210@compuserve.com * Company: mimetz@amiga.de
-
-