home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / rexx / 1477 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.3 KB

  1. Path: sparky!uunet!airgun!hmsp04.wg3.waii.com!miller
  2. From: miller@hmsp04.wg3.waii.com (Griff Miller X7114)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: Arexx & hosts
  5. Keywords: Arexx, RexxArpLib
  6. Message-ID: <1770@airgun.wg.waii.com>
  7. Date: 11 Jan 93 17:33:57 GMT
  8. References: <dgold.0vs0@basso.actrix.gen.nz>
  9. Sender: news@airgun.wg.waii.com
  10. Organization: Western Geo. - Div of Western Atlas Intn'l Inc., Houston, TX
  11. Lines: 41
  12. Nntp-Posting-Host: hmsp04.wg3.waii.com
  13.  
  14. In article <dgold.0vs0@basso.actrix.gen.nz> dgold@basso.actrix.gen.nz (Dale Gold) writes:
  15. >- I thought that I could have one host in charge of all of my
  16. >functions with different port names to identify them....  Would this
  17. >work?  Or do I need a different host name for each one?
  18.  
  19. I'm pretty sure that you have to call CreateHost once for each window
  20. you want to open. I'm pretty new to RexxArpLib and Rexx in general, but
  21. I see no other way that it would be possible to do this in v2.52, which
  22. is what I have. For instance, say you could open another window. How
  23. then would you tell subsequent calls to Text, AddGadget, etc. which
  24. window to do this stuff in? There is nothing in their argument lists
  25. that could uniquely identify each window.
  26.  
  27. If I'm right, then I would like to further add that it may not be a
  28. limitation of Intuition itself, but rather one placed on you by
  29. RexxArplib.
  30.  
  31. >- I want to avoid the little delay that occurs when setting up a new
  32. >host & port, so would like to be able to close a sub-window while
  33. >leaving its host and port ready for next time it's called up. Is this
  34. >possible with RexxArpLib?
  35.  
  36. Yes, this is possible. I think in the call to CloseWindow there is a flag 
  37. to do just this. If this isn't clear, email me and I'll show you what I
  38. mean.
  39.  
  40. Also, WaitForPort takes a while when you are creating a host for the 
  41. first time. There's a faster way. I can't remember exactly how I did 
  42. it in a program I'm currently working on, but I believe I busy-looped 
  43. with a call to SHOW until it returned a true value. If this isn't clear
  44. email me and I'll send you a code fragment to illustrate. This wasn't
  45. an original idea of mine, BTW. I saw it somewhere.
  46.  
  47. Hope this helps.
  48. --
  49. Griff Miller > miller@monarch.wg3.waii.com < use this for email.
  50.  
  51.           *** My opinions are mine, not Western's. ***
  52.  
  53.    "The fear of the Lord is the beginning of knowledge, but 
  54.     fools despise wisdom and discipline."   - Proverbs 1:7 
  55.