home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3033 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.compuserve.com!newsmaster
  2. From: mimetz@amiga.de (Michael Metz)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Arexx problem with vars
  5. Date: Sun, 11 Feb 1996 12:54:27 GMT
  6. Organization: AMIGA Technologies GmbH
  7. Message-ID: <4fkosl$jm0@dub-news-svc-1.compuserve.com>
  8. References: <68771100@0humpty.tomate.tng.oche.de>
  9. NNTP-Posting-Host: ad54-022.compuserve.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. humpty@TOMATE.TNG.OCHE.DE (Andreas Mixich) wrote:
  13.  
  14.  
  15. >    Hi,
  16.  
  17. >I used to do a
  18.  
  19. >list.0 = list.0 + 1
  20.  
  21. >This worked.
  22.  
  23. >Now I have to seperate between two lists. So I did a
  24.  
  25. >IF valuexyz = xyz THEN
  26. >    x = L
  27. >ELSE
  28. >    x = R
  29.  
  30. >x||list.0 = x||list.0 + 1
  31.  
  32. >This results in an "Arithmetic Conversion Error". Why ??
  33.  
  34. because || is not arithmetic operator. Just try to concat the
  35. variable name as you need it before using it in a calculation.
  36. This should work.
  37.  
  38. >I need the placeholder 'x||list' in a function, that may process a list.
  39.  
  40. >It is (abstract)
  41.  
  42. >bla = DoSomething(x||list)
  43.  
  44. >for different lists, but do not want to write (in the script these are
  45. >large procedures ;-)) :
  46.  
  47. >IF valuexyz = xyz THEN
  48. >    bla = DoSomething(Llist)
  49. >ELSE
  50. >    bla = DoSomething(Rlist)
  51.  
  52. >Any ideas ? Thanks.
  53.  
  54. if valuexyz = xyz then xlist = L||list else xList = R||list
  55.  
  56. bla = DoSomething(xlist)
  57. ....
  58. >-- 
  59. >Ciao, Andreas
  60. >Internet: humpty@tomate.tng.oche.de
  61. >FIDO    : 2:244/1544.14
  62.  
  63. >0x2B | ~0x2B   -Hamlet
  64.  
  65.  
  66. -----------------------------------------------------------
  67.  Michael Metz/AMIGA * Technologies GmbH * Berliner Ring 89
  68. D 64625 Bensheim * Tel: +49 (0)6251-802 100 * Fax:.-802 179 
  69. Priv.: 71001.210@compuserve.com * Company: mimetz@amiga.de
  70.  
  71.