home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / vprxx.zip / vprxx.hlp (.txt) < prev   
OS/2 Help File  |  1994-01-16  |  42KB  |  1,503 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. RxExtras Object Help ΓòÉΓòÉΓòÉ
  3.  
  4. This control is used for programming. 
  5.  
  6. It is used by the programmer to access RxExtras functions. For more info on 
  7. what functions are provided, see the 'Create Link' dialog for any RxExtras 
  8. object. 
  9.  
  10.  
  11. ΓòÉΓòÉΓòÉ 2. Style Page Help ΓòÉΓòÉΓòÉ
  12.  
  13. There are really no styles - just the basic. 
  14.  
  15. We recommend that you keep the object invisible and delete it from your form 
  16. before building. This way there is no run-time requirement, except for the 
  17. RxExtras DLL. 
  18.  
  19.  
  20. ΓòÉΓòÉΓòÉ 3. Read a file into a stemmed variable ΓòÉΓòÉΓòÉ
  21.  
  22. ΓöÇΓöÇΓöÇRXREAD(ΓöÇΓöÇ'stemname.'ΓöÇ,ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfilenameΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  23.                             ΓööΓöÇdrive:ΓöÇΓöÿ ΓööΓöÇ\ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γöÿ
  24.                                            ΓööΓöÇpath\ΓöÇΓöÿ
  25.  
  26.  
  27. Reads filename into the stem variable stemname..  The trailing period to 
  28. stemname. is required; results are unpredictable if it is not supplied.  RXREAD 
  29. assumes that the contents of filename are ASCII text, with each line terminated 
  30. by a CR/LF. 
  31.  
  32. RXREAD always returns NULL if successful, and the count of lines retrieved is 
  33. placed in stemname.0.  Each unique line of text is place in stemname.n and may 
  34. be displayed in a loop or by other means. If filename cannot be read, RXREAD 
  35. raises an 'Incorrect call to routine' condition. 
  36.  
  37. Example: 
  38.  
  39.      Call RxRead 'textlines.','C:\Config.Sys'
  40.      Do Count = 1 to textlines.0
  41.         Say textlines.Count
  42.      End
  43.  
  44. Output: 
  45.  
  46.      PROTSHELL=C:\OS2\PMSHELL.EXE          /* perhaps */
  47.      SET USER_INI=C:\OS2\OS2.INI           /* perhaps */
  48.      . . .
  49.  
  50.  
  51. ΓòÉΓòÉΓòÉ 4. Write a stemmed variable to a file ΓòÉΓòÉΓòÉ
  52.  
  53. ΓöÇΓöÇΓöÇRXWRITE(ΓöÇΓöÇ'stemname.'ΓöÇ,ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfilenameΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  54.                              ΓööΓöÇdrive:ΓöÇΓöÿ ΓööΓöÇ\ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γöÿ
  55.                                             ΓööΓöÇpath\ΓöÇΓöÿ
  56.  
  57.  
  58. Writes filename from the stem variable stemname..  The trailing period to 
  59. stemname. is required; results are unpredictable if it is not supplied. 
  60. RXWRITE requires that the number of lines to write are designated in 
  61. stemname.0.  It also requires that the lines of text are placed in stemname. 
  62. such that entries are numeric in nature, starting at 1 and continuing up to the 
  63. number defined in stemname..0.  stemname. variables that are not numeric or are 
  64. not within the range 1 to stemname.0 will not be written to filename.  RXWRITE 
  65. writes the text lines in ascending numerical order. 
  66.  
  67. RXWRITE always overlays the contents of a previously-existing file, otherwise 
  68. it creates the file as required. 
  69.  
  70. RXWRITE always returns NULL if successful.  If filename cannot be written, it 
  71. raises an 'Incorrect call to routine' condition. 
  72.  
  73. Example: 
  74.  
  75.      MyStem.0 = 4
  76.      MyStem.4 = 'We''re as happy as can be.'
  77.      MyStem.2 = 'Hi There!'
  78.      MyStem.3 = 'Ho There!'
  79.      MyStem.1 = 'Hey There!'
  80.      Call RxWrite 'MyStem.','C:\Temp.Out'
  81.  
  82. Contents of C:\Temp.Out: 
  83.  
  84.      Hey There!
  85.      Hi There!
  86.      Ho There!
  87.      We're as happy as can be.
  88.  
  89.  
  90. ΓòÉΓòÉΓòÉ 5. Get drive OS/2 was booted from ΓòÉΓòÉΓòÉ
  91.  
  92. ΓöÇΓöÇΓöÇRXBOOTDRIVE()ΓöÇΓöÇΓöÇ
  93.  
  94.  
  95. Returns the drive from which OS2 was booted in the format 'X'. 
  96.  
  97. If you want a trailing ':' you must append one to the returned drive letter. 
  98.  
  99. Example: 
  100.  
  101.      SAY 'My Boot Drive is' RxBootDrive() || ':'
  102.  
  103. Output: 
  104.  
  105.      My Boot Drive is C:           /* perhaps */
  106.  
  107.  
  108. ΓòÉΓòÉΓòÉ 6. Get the volume label of a drive ΓòÉΓòÉΓòÉ
  109.  
  110. ΓöÇΓöÇΓöÇRXVOLUMELABEL(drive)ΓöÇΓöÇΓöÇ
  111.  
  112.  
  113. Returns the volume label for disc drive drive.  If no label exists, it returns 
  114. 'NO LABEL'. 
  115.  
  116. Returns 'Error Querying drive label' for an invalid drive letter. 
  117.  
  118. You may append an optional colon to the letter, but only the drive letter 
  119. itself is required. 
  120.  
  121. Example: 
  122.  
  123.      SAY 'Volume Label of drive C is' RxVolumeLabel('C')
  124.  
  125. Output: 
  126.  
  127.      Volume Label of drive C is MY DRIVE C       /* perhaps */
  128.  
  129.  
  130. ΓòÉΓòÉΓòÉ 7. Get a list of all local variables ΓòÉΓòÉΓòÉ
  131.  
  132. ΓöÇΓöÇΓöÇRXVARDUMP(ΓöÇΓöÇ'stemname.'ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  133.  
  134.  
  135. Copies all local variables to stemname for debugging.  The trailing period is 
  136. required; results are unpredictable without it. 
  137.  
  138. RXVARDUMP always returns NULL.  The count of variables retrieved is placed in 
  139. stemname.0.  Each unique variable is placed in a pair of variables, 
  140. stemname.n.name and stemname.n.value and may be displayed in a loop or by other 
  141. means. 
  142.  
  143. Example: 
  144.  
  145.      XYZ = '123'
  146.      MyVar = 'Quick Brown Fox'
  147.      Call RxVarDump 'varlist.'
  148.      Do Count = 1 to varlist.0
  149.         Say varlist.Count.name 'has the value "'varlist.Count.value'"'
  150.      End
  151.  
  152. Output: 
  153.  
  154.      XYZ has the value "123"
  155.      MYVAR has the value "Quick Brown Fox"
  156.  
  157.  
  158. ΓòÉΓòÉΓòÉ 8. Copy a stemmed variable. ΓòÉΓòÉΓòÉ
  159.  
  160. ΓöÇΓöÇΓöÇRXSTEMCOPY(ΓöÇΓöÇ'sourcestem.'ΓöÇΓöÇ,ΓöÇΓöÇ'targetstem.'ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  161.  
  162.  
  163. Copies the entire contents of sourcestem. to targetstem..  The trailing period 
  164. to sourcestem. and targetstem. are required; results are unpredictable if they 
  165. are not supplied. 
  166.  
  167. RXSTEMCOPY always returns NULL. 
  168.  
  169. Example: 
  170.  
  171.      Source.ABC = 'ABCDEFG'
  172.      Source.123 = '123456789'
  173.      Call RxStemCopy 'Source.','Target.'
  174.      Say Target.ABC
  175.      Say Target.123
  176.  
  177. Output: 
  178.  
  179.      ABCDEFG
  180.      123456789
  181.  
  182.  
  183. ΓòÉΓòÉΓòÉ 9. Initialise or Uninitialise RxExtras ΓòÉΓòÉΓòÉ
  184.  
  185. ΓöÇΓöÇΓöÇRXEXTRA(ΓöÇΓö¼ΓöÇ'LOAD'ΓöÇΓö¼ΓöÇ)ΓöÇΓöÇΓöÇ
  186.               ΓööΓöÇ'DROP'ΓöÇΓöÿ
  187.  
  188.  
  189. Loads or Drops all functions in this package. 
  190.  
  191. Returns the version number of RxExtras after loading or dropping. 
  192.  
  193. Example: 
  194.  
  195.      rcy = RxFuncAdd('RxExtra', 'RxExtras', 'RxExtra')
  196.      Say 'Using version 'RxExtra("Load")' of RxExtras'
  197.  
  198. Output: 
  199.  
  200.      Using version 1.8 of RxExtras        /* perhaps */
  201.  
  202.  
  203. ΓòÉΓòÉΓòÉ 10. Sorting a stemmed variable ΓòÉΓòÉΓòÉ
  204.  
  205. ΓöÇΓöÇΓöÇRXSORT(ΓöÇΓöÇ'stemname.'ΓöÇΓöÇ,ΓöÇΓö¼ΓöÇ'Ascending'ΓöÇΓöÇΓö¼ΓöÇ)ΓöÇΓöÇΓöÇ
  206.                              ΓööΓöÇ'Descending'ΓöÇΓöÿ
  207.  
  208.  
  209. Sorts a stemmed variable stemname. in either Ascending or Descending ASCII 
  210. sequence.  Only the A or D of the sort order is required. 
  211.  
  212. The number of items to sort must be placed in stemname.0.  All values to sort 
  213. must be in stemname.1 through stemname.n, where n is the number placed in 
  214. stemname.0. 
  215.  
  216. RXSORT always returns NULL if invoked properly. 
  217.  
  218. Example: 
  219.  
  220.      Stem.0 = 3
  221.      Stem.1 = 'Now is the time...'
  222.      Stem.2 = 'A stitch in time...'
  223.      Stem.3 = 'Somewhere in time...'
  224.      Call RxSort 'Stem.','A'
  225.      Do Count = 1 to Stem.0
  226.         Say Stem.Count
  227.      End
  228.      Say '-----------------'
  229.      Call RxSort 'Stem.','D'
  230.      Do Count = 1 to Stem.0
  231.         Say Stem.Count
  232.      End
  233.  
  234. Output: 
  235.  
  236.      A stitch in time...
  237.      Now is the time...
  238.      Somewhere in time...
  239.      -----------------
  240.      Somewhere in time...
  241.      Now is the time...
  242.      A stitch in time...
  243.  
  244.  
  245. ΓòÉΓòÉΓòÉ 11. Switch to a running application ΓòÉΓòÉΓòÉ
  246.  
  247. ΓöÇΓöÇΓöÇRXSWITCHTO(ΓöÇΓöÇ'session'ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  248.  
  249.  
  250. Switches the forground session to the the session named by session. 
  251.  
  252. RXSWITCHTO will attempt to locate a session, by name, that matches in any part 
  253. of its name to the contiguous characters defined by session  For example, if 
  254. session contains 'stem C', RXSWITCHTO will switch to the System Clock session, 
  255. if it is active.  If you desire to specifiy a complete name, use 
  256. RxQuerySwitchList to obtain the full names of all executing sessions. 
  257.  
  258. RXSWITCHTO returns 'Switch Entry not found' if it cannot find a session name to 
  259. match session. 
  260.  
  261. Example: 
  262.  
  263.      Call RxSwitchTo '2.0'       /* try "OS/2 2.0 Desktop" */
  264.      If  Result \= '' Then       /* probably 2.1 */
  265.           Call RxSwitchTo 'Desktop'
  266.  
  267. Results: 
  268.  
  269.      The system switches to your OS/2 desktop, making it the active
  270.      forground session.  Your REXX program continues to execute in
  271.      the background.
  272.  
  273.  
  274. ΓòÉΓòÉΓòÉ 12. Get a list of running applications ΓòÉΓòÉΓòÉ
  275.  
  276. ΓöÇΓöÇΓöÇRXQUERYSWITCHLIST(ΓöÇΓöÇ'stemname.'ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  277.  
  278.  
  279. Retrieves a list of executing sessions into the stemmed variable stemname.. 
  280.  
  281. The count of executing sessions, plus 1, is placed in stemname.0, and the title 
  282. of each session is placed in stemname.2 through stemname.n, where n is the 
  283. value found in stemname.0. stemname.1 will contain 'Switch to'.  Note that 
  284. RXQUERYSWITCHLIST will list "hidden" sessions. 
  285.  
  286. RXQUERYSWITCHLIST always returns NULL. 
  287.  
  288. Example: 
  289.  
  290.      Call RxQuerySwitchList 'temp.'
  291.      Do Count = 2 to temp.0
  292.           Say temp.Count
  293.      End
  294.  
  295. Output: 
  296.  
  297.      4OS2 Window                   /* perhaps */
  298.      Tritus SPF                    /* perhaps */
  299.      System Clock                  /* perhaps */
  300.      Pulse                         /* perhaps */
  301.      Desktop                       /* perhaps */
  302.  
  303.  
  304. ΓòÉΓòÉΓòÉ 13. Load a listbox or combobox from a file ΓòÉΓòÉΓòÉ
  305.  
  306. ΓöÇΓöÇΓöÇRXLISTBOXFROMFILE(ΓöÇΓöÇwindowΓöÇΓöÇ,ΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇ,ΓöÇΓöÇfilenameΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  307.                                    ΓööΓöÇlbidΓöÇΓöÿ
  308.  
  309. Places the contents of file filename into ListBox lbid of Window window. 
  310.  
  311. If lbid is omitted, window is assumed to be the PM handle of a list box. 
  312.  
  313. If window and/or filename are invalid/inaccessible, RXLISTBOXFROMFILE raises an 
  314. INCORRECT CALL TO ROUTINE condition from within REXX. Otherwise, 
  315. RXLISTBOXFROMFILE returns a null string. 
  316.  
  317. Note:  This API appends to the end of any existing contents already in ListBox 
  318. lbid. 
  319.  
  320. Example: 
  321.  
  322.      Call RxListBoxFromFile window, 1000, 'C:\Config.Sys'
  323.  
  324. Results: 
  325.  
  326.      The contents of C:\Config.Sys are placed into ListBox 1000 of
  327.      window window.
  328.  
  329.  
  330. ΓòÉΓòÉΓòÉ 14. Get the file system of a drive ΓòÉΓòÉΓòÉ
  331.  
  332. ΓöÇΓöÇΓöÇRXQUERYDRIVETYPE(drive:)ΓöÇΓöÇΓöÇ
  333.  
  334.  
  335. Returns 'HPFS', 'FAT' or 'CDFS' for their respective drive types. 
  336.  
  337. Returns 'NOTREADY' for the following conditions: 
  338.  
  339.      o A CD-ROM drive with an Audio CD loaded. 
  340.      o An empty floppy drive. 
  341.      o An invalid drive letter. 
  342.  
  343.  Example: 
  344.  
  345.        SAY 'Drive C: is a' RxQueryDriveType('C:') 'drive.'
  346.  
  347.  Output: 
  348.  
  349.        Drive C: is a HPFS drive.           /* perhaps */
  350.  
  351.  
  352. ΓòÉΓòÉΓòÉ 15. Locate a file in a list of directories ΓòÉΓòÉΓòÉ
  353.  
  354. ΓöÇΓöÇΓöÇRXSEARCHPATH(ΓöÇΓöÇsearchpathΓöÇΓöÇ,ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfilenameΓöÇ)ΓöÇΓöÇΓöÇ
  355.                                 ΓööΓöÇsubdir\ΓöÇΓöÿ
  356.  
  357.  
  358. Searches for [ subdir\ ]filename in the path(s) defined by searchpath. 
  359.  
  360. The path(s) defined for searchpath will be used for the search.  searchpath may 
  361. be composed of several pathnames, each separated by a semicolon.  Each pathname 
  362. is allowed to have either a drive designator, a directory designator, or both. 
  363.  
  364. Currently, filename must specify a complete filename; no wildcard characters 
  365. are accepted.  If you supply the optional subdir\ qualifier, the effect is as 
  366. if you had modified all the values of searchparh to include the addtional 
  367. subdir\ value.  For example, if searchpath contains 'F:\OS2;G:\USER', and you 
  368. specify 'DLL\' for subdir,, the effect is the same as having specified 
  369. 'F:\OS2\DLL;G:\USER\DLL' for searchpath and no value for subdir\. 
  370.  
  371.  RXSEARCHPATH returns a fully qualified filename if it finds one, otherwise it 
  372. returns NULL. 
  373.  
  374. Example: 
  375.  
  376.      /*  Find COUNTRY.SYS */
  377.      SchPath = 'C:\OS2\SYSTEM;D:\OS2\SYSTEM;E:\OS2\SYSTEM'
  378.      SAY RxSearchPath(SchPath,'COUNTRY.SYS')
  379.  
  380. Output: 
  381.  
  382.      D:\OS2\SYSTEM\COUNTRY.SYS    /* if found in D:\OS2\SYSTEM */
  383.  
  384.  
  385. ΓòÉΓòÉΓòÉ 16. Get selected item from listbox or combobox ΓòÉΓòÉΓòÉ
  386.  
  387. ΓöÇΓöÇΓöÇRXGETITEMFROMLISTBOX(ΓöÇΓöÇwinidΓöÇΓöÇ,ΓöÇΓöÇlbidΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  388.  
  389.  
  390. Retrieves the first selected item from ListBox lbid of Window winid. 
  391.  
  392. If either winid or lbid are invalid, the REXX error condition INCORRECT CALL TO 
  393. ROUTINE is raised. 
  394.  
  395. If no items are selected, RXGETITEMFROMLISTBOX returns an empty string ("").
  396.  
  397. If winid and/or lbid are invalid, RXGETITEMFROMLISTBOX raises an INCORRECT CALL 
  398. TO ROUTINE error from within REXX. Otherwise, RXGETITEMFROMLISTBOX returns the 
  399. selected item. 
  400.  
  401. Note:  The VisPro/Rexx API VpGetItemValue will only return up to 262 characters 
  402. for the retrieved item.  RxGetItemFromListBox will exactly what is in the 
  403. listbox. 
  404.  
  405. Example: 
  406.  
  407.      row = RxGetItemFromListBox(window, 1000)
  408.  
  409. Results: 
  410.  
  411.      The first selected item in ListBox 1000 of window window is
  412.      retrieved and placed in the variable row.
  413.  
  414.  
  415. ΓòÉΓòÉΓòÉ 17. Set spinbutton range with increment ΓòÉΓòÉΓòÉ
  416.  
  417. ΓöÇΓöÇΓöÇRXSETSPINBUTTONRANGEWITHINCREMENT(ΓöÇΓöÇwindowΓöÇΓöÇ,ΓöÇΓöÇsbidΓöÇΓöÇ,ΓöÇΓöÇlowΓöÇΓöÇ,ΓöÇΓöÇhighΓöÇΓöÇ,ΓöÇΓöÇΓöÇΓöÇΓöÇ
  418.  
  419.  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇincrementΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ)ΓöÇΓöÇ
  420.  
  421.  
  422. Sets the SpinButton sbid of Window window to the numeric range of low to high, 
  423. in increments of increment. 
  424.  
  425. If window and/or sbid are invalid, RXSETSPINBUTTONRANGEWITHINCREMENT raises the 
  426. REXX error condition INCORRECT CALL TO ROUTINE. Otherwise, 
  427. RXSETSPINBUTTONRANGEWITHINCREMENT returns an empty string (""). 
  428.  
  429. Example: 
  430.  
  431.      Call RxSetSpinButtonRangeWithIncrement window, 4000, 0, 10000, 2000
  432.  
  433. Results: 
  434.  
  435.      The SpinButton with ID=4000 in window window now contains the
  436.      selection numeric set 0, 2000, 4000, 6000, 8000, and 10000.
  437.  
  438. Note:  The maximum number of discrete values that this function can store in a 
  439. spin button is 4096. 
  440.  
  441.  
  442. ΓòÉΓòÉΓòÉ 18. Set spinbutton character range ΓòÉΓòÉΓòÉ
  443.  
  444. ΓöÇΓöÇΓöÇRXSETSPINBUTTONCHARRANGE(ΓöÇΓöÇwinidΓöÇΓöÇ,ΓöÇΓöÇsbidΓöÇΓöÇ,ΓöÇΓöÇlowΓöÇΓöÇ,ΓöÇΓöÇhighΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  445.  
  446.  
  447. Sets the SpinButton sbid of Window winid to include the ASCII character range 
  448. low through high. Only the first character of low and high are used. 
  449.  
  450. If winid and/or sbid are invalid, RXSETSPINBUTTONCHARRANGE raises the REXX 
  451. error condition INCORRECT CALL TO ROUTINE. Otherwise, RXSETSPINBUTTONCHARRANGE 
  452. returns an empty string (""). 
  453.  
  454. Example: 
  455.  
  456.      Call RxSetSpinButtonCharRange Hwindow, 4000, 'a', 'z'
  457.  
  458. Results: 
  459.  
  460.      The SpinButton with ID=4000 in window Hwindow now contains the
  461.      selection character set 'a' through 'z', inclusive.
  462.  
  463.  
  464. ΓòÉΓòÉΓòÉ 19. Get item value at index from listbox or combobox ΓòÉΓòÉΓòÉ
  465.  
  466. ΓöÇΓöÇΓöÇRXGETITEMFROMLISTBOXATINDEX(ΓöÇΓöÇwindowΓöÇΓöÇ,ΓöÇΓöÇlbidΓöÇΓöÇ,ΓöÇΓöÇrowΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  467.  
  468.  
  469. Retrieves the line row from ListBox lbid of Window window. 
  470.  
  471. If no item exists at line row in window and/or lbid are invalid, 
  472. RXGETITEMFROMLISTBOXATINDEX raises an INCORRECT CALL TO ROUTINE error from 
  473. within REXX. 
  474.  
  475. Otherwise, RXGETITEMFROMLISTBOXATINDEX returns the item of choice. 
  476.  
  477. Note:  The VisPro/Rexx API VpGetItemValueAtIndex will only return up to 256 
  478. characters for the retrieved item.  RxGetItemFromListBoxAtIndex will return 
  479. whatever is in the listbox, with no limitations. 
  480.  
  481. Example: 
  482.  
  483.      row = RxGetItemFromListBoxAtIndex(window, 1000, 4)
  484.  
  485. Results: 
  486.  
  487.      If it exists, the item at line 4 in ListBox 1000 of window window
  488.      is retrieved and placed in the variable row.
  489.  
  490.  
  491. ΓòÉΓòÉΓòÉ 20. Set System wide global variable ΓòÉΓòÉΓòÉ
  492.  
  493. ΓöÇΓöÇΓöÇRXSETGLOBAL(ΓöÇΓöÇvarnameΓöÇ,ΓöÇvarvalueΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  494.  
  495.  
  496. Sets a global variable value for use across all REXX sessions.  A variable thus 
  497. set can be retrieved by any other REXX session via RXGETGLOBAL. 
  498.  
  499. You can set a global stem from a local stem by passing the global stem name 
  500. (which must have a trailing period) for varname and passing the local stem name 
  501. (which also must have a trailing period) for varvalue. 
  502.  
  503. Returns varvalue if successful. 
  504.  
  505. Example: 
  506.  
  507.      SomeVar = 'MyVar'
  508.      Call RxSetGlobal SomeVar,'Hello World!'
  509.      Say RxGetGlobal('MyVar')
  510.  
  511. Output: 
  512.  
  513.      Hello World!
  514.  
  515.  
  516. ΓòÉΓòÉΓòÉ 21. Get System wide global variable ΓòÉΓòÉΓòÉ
  517.  
  518. ΓöÇΓöÇΓöÇRXGETGLOBAL(ΓöÇΓöÇvarnameΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  519.  
  520.  
  521. Returns the value for varname, where varname was previously defined via 
  522. RXSETGLOBAL. 
  523.  
  524. If varname was not defined via RXSETGLOBAL, RXGETGLOBAL returns NULL. 
  525.  
  526. Example: 
  527.  
  528.      Call RxSetGlobal 'MyVar','Hello World!'
  529.      Say RxGetGlobal('MyVar')
  530.  
  531. Output: 
  532.  
  533.      Hello World!
  534.  
  535.  
  536. ΓòÉΓòÉΓòÉ 22. Pause the program ΓòÉΓòÉΓòÉ
  537.  
  538. ΓöÇΓöÇΓöÇRXNAP(ΓöÇΓöÇtimeΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  539.  
  540.  
  541. Puts a REXX program to sleep for a certain amount of time. 
  542.  
  543. The SysSleep function that comes with OS/2 will only put your program to sleep 
  544. for whole seconds. 
  545.  
  546. If the time specified (in milliseconds) is invalid, or is not passed to the 
  547. function, an INCORRECT CALL TO ROUTINE condition is raised from within REXX. 
  548.  
  549. Example: 
  550.  
  551.      Call RxNap 50       /* sleep for 1/20 of a second */
  552.  
  553. Results: 
  554.  
  555.      The REXX program will stop execution for 1/20 of a second
  556.  
  557.  
  558. ΓòÉΓòÉΓòÉ 23. Save a listbox or combox box to a file ΓòÉΓòÉΓòÉ
  559.  
  560. ΓöÇΓöÇΓöÇRXLISTBOXTOFILE(ΓöÇΓöÇwinidΓöÇΓöÇ,ΓöÇ[ΓöÇΓöÇlbidΓöÇΓöÇ]ΓöÇ,ΓöÇΓöÇfilenameΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  561.  
  562.  
  563. Places the contents ListBox lbid of Window winid into file filename. 
  564.  
  565. If winid and/or filename are invalid/inaccessible, RXLISTBOXTOFILE raises the 
  566. REXX INCORRECT CALL TO ROUTINE error condition. Otherwise, RXLISTBOXTOFILE 
  567. returns an empty string (""). 
  568.  
  569. If lbid is omitted, winid is assumed to be the window handle of a listbox. 
  570.  
  571. Note:  This API erases all contents of file filename before writing to it. 
  572.  
  573. Example: 
  574.  
  575.      Call RxListBoxToFile window, 1000, 'C:\MyData.Dat'
  576.  
  577. Results: 
  578.  
  579.      The contents of ListBox 1000 of window window are written to
  580.      file C:\MyData.Dat.
  581.  
  582.  
  583. ΓòÉΓòÉΓòÉ 24. Save a listbox or combox box to a stemmed variable ΓòÉΓòÉΓòÉ
  584.  
  585. ΓöÇΓöÇΓöÇRXLISTBOXTOSTEM(ΓöÇΓöÇwinidΓöÇΓöÇ,ΓöÇΓöÇlbidΓöÇΓöÇ,ΓöÇΓöÇstemname.ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  586.  
  587.  
  588. Places the contents of ListBox lbid of Window winid into stem stemname.  The 
  589. trailing period to stemname. is required; results are unpredictable if not 
  590. supplied. 
  591.  
  592. stemname.0 will contain the count of items to placed into it from ListBox lbid. 
  593. All other occurrences for stemname will be numeric, from 1 to n, where n is the 
  594. number contained in stemname.0. 
  595.  
  596. If winid and/or lbid are invalid, RXLISTBOXTOSTEM raises the REXX error 
  597. condition INCORRECT CALL TO ROUTINE. Otherwise, RXLISTBOXTOSTEM returns an 
  598. empty string (""). 
  599.  
  600. Note:  This API destroys any existing contents already in stem stemname. 
  601.  
  602. Example: 
  603.  
  604.      Call RxListBoxToStem window, 1000, 'MyStem.'
  605.  
  606. Results: 
  607.  
  608.      The contents of ListBox 1000 of window window will be copied
  609.      to stem MyStem.  Assuming there are 2 rows in ListBox 1000,
  610.      MyStem.0 will contain 2, and occurrences will exist for MyStem.1
  611.      and MyStem.2.
  612.  
  613.  
  614. ΓòÉΓòÉΓòÉ 25. Set text button to icon ΓòÉΓòÉΓòÉ
  615.  
  616. ΓöÇΓöÇΓöÇRXMORPHBUTTONTOICON(ΓöÇΓöÇwinidΓöÇΓöÇ,ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇ,ΓöÇΓöÇΓö¼ΓöÇVpLoadPictureHandleΓöÇΓöÇΓö¼ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  617.                                       ΓööΓöÇpbidΓöÇΓöÿ ΓööΓöÇDLLnameΓöÇΓöÇ,ΓöÇΓöÇresourceΓöÇΓöÿ
  618.  
  619.  
  620. Converts a standard PushButton object pbid of window winid into a "Toolbox" 
  621. button. 
  622.  
  623. If any arguments are invalid or inaccessible, RXMORPHBUTTONTOICON raises the 
  624. REXX error condition INCORRECT CALL TO ROUTINE. Otherwise, RXMORPHBUTTONTOICON 
  625. returns an empty string (""). 
  626.  
  627. If pbid is ommitted, winid is assumed to be the window handle of a pushbutton. 
  628.  
  629. Note:  The use of DLLName, resource can be used by any PM REXX-based program, 
  630. and retrieves the requested icon.  If DLLname is in your LIBPATH, do not 
  631. specify an extension of '.DLL'. 
  632.  
  633. Note:  In order to make the window appear to start-up with your required icons, 
  634. you should call RXMORPHBUTTONTOICON immediately at entry to your program, when 
  635. the window is being opened.  Otherwise, the user will see the buttons change 
  636. appearance. 
  637.  
  638. Example: 
  639.  
  640.      value = VpLoadPicture('FILE','C:\TEMP\OS2CMD.ICO')
  641.      Call RxMorphButtonToIcon window, 2000, value
  642. or
  643.      Call RxMorphButtonToIcon window, id, 'MYDLL', 3
  644.  
  645. Results: 
  646.  
  647.      The PushButton with ID=2000 in window 'window'
  648.      is changed to an OS/2 Command-Prompt icon (stored previously in
  649.      C:\TEMP\OS2CMD.ICO, or as ICON number 3 in MYDLL.DLL)
  650.  
  651.  
  652. ΓòÉΓòÉΓòÉ 26. Search a listbox or combobox ΓòÉΓòÉΓòÉ
  653.  
  654. Searches a listbox for text. Doesn't have to be an entire line, it can be text 
  655. contained within one line of a listbox. 
  656.  
  657. RxSearchItem returns the line in the listbox that holds the text. 
  658.  
  659. ΓöÇΓöÇΓöÇRXSEARCHITEM(ΓöÇΓöÇwinidΓöÇΓöÇ,ΓöÇΓöÇlbidΓöÇΓöÇ,ΓöÇΓö¼ΓöÇ''ΓöÇΓöÇΓöÇΓö¼ΓöÇ,ΓöÇΓöÇrowΓöÇΓöÇ,ΓöÇΓö¼ΓöÇ'F'ΓöÇΓö¼ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  660.                                       ΓööΓöÇmaskΓöÇΓöÿ           ΓööΓöÇ'B'ΓöÇΓöÿ
  661.  
  662.  
  663. Searches ListBox lbid of Window winid, starting at line row, for a line 
  664. containing the characters mask.  The search will procede forward or backward, 
  665. depending on the use of 'F' or 'B', respectively. 
  666.  
  667. If winid and/or lbid are invalid, RXSEARCHITEM raises the REXX error condition 
  668. INCORRECT CALL TO ROUTINE. Otherwise, RXSEARCHITEM returns the index number of 
  669. the first matching line, or 0 if no lines were found to match mask. 0 is used 
  670. to indicate no match. 
  671.  
  672. Note:  If NULL (i.e., '') is used for mask, the first item tested will match. 
  673. RXSEARCHITEM can therefore be used to retrieve the index of the last item in 
  674. ListBox lbid. 
  675.  
  676. Example: 
  677.  
  678.      JohnIsAt = RxSearchItem(window, 1000, 'John Smith', 1, 'F')
  679.  
  680. Results: 
  681.  
  682.      The contents of ListBox 1000 of window window will be searched,
  683.      starting at row 1 and proceding in a forward direction, looking
  684.      for any row that contains the characters 'John Smith'.  If found,
  685.      variable JohnIsAt will contain the index (row number) of the
  686.      matching entry.  Otherwise, JohnIsAt will contain 0.
  687.  
  688.  
  689. ΓòÉΓòÉΓòÉ 27. Get related PM window handle ΓòÉΓòÉΓòÉ
  690.  
  691. ΓöÇΓöÇΓöÇRXQUERYWINDOW(ΓöÇΓöÇwinidΓöÇΓöÇ,ΓöÇΓö¼ΓöÇ'Owner'ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇ)ΓöÇΓöÇΓöÇ
  692.                               Γö£ΓöÇ'Parent'ΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  693.                               Γö£ΓöÇ'Next'ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  694.                               Γö£ΓöÇ'Prev'ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  695.                               Γö£ΓöÇ'Top'ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  696.                               Γö£ΓöÇ'Bottom'ΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  697.                               Γö£ΓöÇ'NextTop'ΓöÇΓöÇΓöÇΓöÇΓöñ
  698.                               Γö£ΓöÇ'PrevTop'ΓöÇΓöÇΓöÇΓöÇΓöñ
  699.                               ΓööΓöÇ'FrameOwner'ΓöÇΓöÿ
  700.  
  701.  
  702. Returns the window handle for the requested related window to winid. 
  703.  
  704. Double-click on each window relation above for further information. 
  705.  
  706. If winid is invalid, RXQUERYWINDOW raises the REXX error condition INCORRECT 
  707. CALL TO ROUTINE. Otherwise, RXQUERYWINDOW returns the requested PM window 
  708. handle, in decimal. 
  709.  
  710. Example: 
  711.  
  712.      WinParent =  RxQueryWindow(window, 'Parent')
  713.  
  714. Results: 
  715.  
  716.      The parent window handle, in decimal, for window 'window'
  717.      is placed in the variable WinParent.
  718.  
  719.  
  720. ΓòÉΓòÉΓòÉ <hidden> RxQueryWindow (winid,'Owner') ΓòÉΓòÉΓòÉ
  721.  
  722. Requests the Owner window handle of winid.  The Owner window is the one which 
  723. window winid is dependent upon.  Quite frequently, this is the same as 
  724. 'Parent'. 
  725.  
  726.  
  727. ΓòÉΓòÉΓòÉ <hidden> RxQueryWindow (winid,'Parent') ΓòÉΓòÉΓòÉ
  728.  
  729. Requests the Parent window handle of winid.  The Parent window is the one that 
  730. causes window winid to be initialized. 
  731.  
  732.  
  733. ΓòÉΓòÉΓòÉ <hidden> RxQueryWindow (winid,'Next') ΓòÉΓòÉΓòÉ
  734.  
  735. Requests the Next window handle, in z-order, of winid.  This is the next window 
  736. at the same "level" as window winid. 
  737.  
  738.  
  739. ΓòÉΓòÉΓòÉ <hidden> RxQueryWindow (winid,'Prev') ΓòÉΓòÉΓòÉ
  740.  
  741. Requests the Previous window handle, in z-order, of winid.  This is the 
  742. previous window at the same "level" as window winid. 
  743.  
  744.  
  745. ΓòÉΓòÉΓòÉ <hidden> RxQueryWindow (winid,'Top') ΓòÉΓòÉΓòÉ
  746.  
  747. Requests the Topmost (first) "child" window handle of winid.  This is the first 
  748. window that window winid caused to be initialized. 
  749.  
  750.  
  751. ΓòÉΓòÉΓòÉ <hidden> RxQueryWindow (winid,'Bottom') ΓòÉΓòÉΓòÉ
  752.  
  753. Requests the Bottommost (last) "child" window handle of winid.  This is the 
  754. last window that window winid caused to be initialized. 
  755.  
  756.  
  757. ΓòÉΓòÉΓòÉ <hidden> RxQueryWindow (winid,'NextTop') ΓòÉΓòÉΓòÉ
  758.  
  759. Requests the next window, in z-order, of the owner window hierarchy for winid. 
  760. See 'Owner'. 
  761.  
  762.  
  763. ΓòÉΓòÉΓòÉ <hidden> RxQueryWindow (winid,'PrevTop') ΓòÉΓòÉΓòÉ
  764.  
  765. Requests the previous window, in enumeration order defined by NextTop, of the 
  766. owner window hierarchy for winid.  See 'Owner'. 
  767.  
  768.  
  769. ΓòÉΓòÉΓòÉ <hidden> RxQueryWindow (winid,'FrameOwner') ΓòÉΓòÉΓòÉ
  770.  
  771. Requests the owner of winid, normalized so that it shares the same window as 
  772. its Parent. 
  773.  
  774.  
  775. ΓòÉΓòÉΓòÉ 28. Get window class name ΓòÉΓòÉΓòÉ
  776.  
  777. ΓöÇΓöÇΓöÇRXQUERYCLASSNAME(ΓöÇΓöÇwinidΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  778.  
  779.  
  780. Returns the Class Name for window winid. 
  781.  
  782. If winid is invalid, RXQUERYCLASSNAME raises the REXX error condition INCORRECT 
  783. CALL TO ROUTINE. 
  784.  
  785. If an error occurs, RXQUERYCLASSNAME returns "Error trying to query classs 
  786. name", otherwise, RXQUERYCLASSNAME returns the PM Class Name for the window. 
  787.  
  788. Example: 
  789.  
  790.      WinClass =  RxQueryClassName(window)
  791.  
  792. Results: 
  793.  
  794.      The Class Name of window 'window' is placed in the variable WinClass.
  795.  
  796.  
  797. ΓòÉΓòÉΓòÉ 29. Get line count for a file ΓòÉΓòÉΓòÉ
  798.  
  799. ΓöÇΓöÇΓöÇRXLINECOUNT(ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇfilenameΓöÇ)ΓöÇΓöÇΓöÇ
  800.                   ΓööΓöÇdrive:ΓöÇΓöÿ ΓööΓöÇ\ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼Γöÿ
  801.                                  ΓööΓöÇpath\ΓöÇΓöÿ
  802.  
  803.  
  804. Returns the number of lines in filename.  The lines in filename are assumed to 
  805. be delimited by CR/LF characters. 
  806.  
  807. If filename does not exist, RXLINECOUNT raises an 'Incorrect call to routine' 
  808. condition. 
  809.  
  810. Example: 
  811.  
  812.      SAY 'There are' RxLineCount('C:\CONFIG.SYS') 'lines in Config.Sys.'
  813.  
  814. Output: 
  815.  
  816.      There are 117 lines in Config.Sys.      /* perhaps */
  817.  
  818.  
  819. ΓòÉΓòÉΓòÉ 30. Maximize a window ΓòÉΓòÉΓòÉ
  820.  
  821. ΓöÇΓöÇΓöÇRXMAXIMIZE(ΓöÇΓöÇwinidΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  822.  
  823.  
  824. Causes window winid to become maximized. 
  825.  
  826. If winid is invalid, RXMAXIMIZE raises the REXX error condition INCORRECT CALL 
  827. TO ROUTINE. 
  828.  
  829. If an error occurs, RXMAXIMIZE returns "Error occured trying to maximize", 
  830. otherwise, RXMAXIMIZE returns an empty string (""). 
  831.  
  832. Example: 
  833.  
  834.      Call RxMaximize window
  835.  
  836. Results: 
  837.  
  838.      The window 'window' is maximized.
  839.  
  840.  
  841. ΓòÉΓòÉΓòÉ 31. Minimize a window ΓòÉΓòÉΓòÉ
  842.  
  843. ΓöÇΓöÇΓöÇRXMINIMIZE(ΓöÇΓöÇwinidΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  844.  
  845.  
  846. Causes window winid to become minimized. 
  847.  
  848. If winid is invalid, RXMINIMIZE raises the REXX error condition INCORRECT CALL 
  849. TO ROUTINE. 
  850.  
  851. If RXMINIMIZE encounters an error, it returns "Error trying to minimize", 
  852. otherwise, RXMINIMIZE returns an empty string (""). 
  853.  
  854. Example: 
  855.  
  856.      Call RxMinimize window
  857.  
  858. Results: 
  859.  
  860.      The window 'window' is minimized.
  861.  
  862.  
  863. ΓòÉΓòÉΓòÉ 32. Restore a window ΓòÉΓòÉΓòÉ
  864.  
  865. ΓöÇΓöÇΓöÇRXRESTORE(ΓöÇΓöÇwinidΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  866.  
  867. Restores window winid to its normal state after being maximized or minimized. 
  868.  
  869. If winid is invalid, RXRESTORE raises the REXX error condition INCORRECT CALL 
  870. TO ROUTINE. 
  871.  
  872. If an error occurs, RXRESTORE returns "Error trying to restore", otherwise, 
  873. RXRESTORE restores the requested PM window, and returns an empty string (""). 
  874.  
  875. Example: 
  876.  
  877.      Call RxRestore window
  878.  
  879. Results: 
  880.  
  881.      Restores the window 'window' from a minimised state.
  882.  
  883.  
  884. ΓòÉΓòÉΓòÉ 33. Load a bitmap into a free form window ΓòÉΓòÉΓòÉ
  885.  
  886. ΓöÇΓöÇΓöÇRXDRAWBITMAP(ΓöÇΓöÇwinidΓöÇΓöÇ,ΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇ,ΓöÇΓöÇΓö¼ΓöÇVpLoadPictureHandleΓöÇΓöÇΓö¼ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  887.                               ΓööΓöÇpbidΓöÇΓöÿ ΓööΓöÇDLLnameΓöÇΓöÇ,ΓöÇΓöÇresourceΓöÇΓöÿ
  888.  
  889.  
  890. Draws a bitmap in a free form window of id ffid in window winid. 
  891.  
  892. RXDRAWBITMAP will stretch the bitmap to take up the entire size of the free 
  893. form window. 
  894.  
  895. If any arguments are invalid or inaccessible, RXDRAWBITMAP raises the REXX 
  896. error condition INCORRECT CALL TO ROUTINE. 
  897.  
  898. If there is an error loading the bitmap from a DLL, RXDRAWBITMAP will return 
  899. "Error loading bitmap from DLL". 
  900.  
  901. Otherwise, RXDRAWBITAMP returns an empty string (""). 
  902.  
  903. If pbid is ommitted, winid is assumed to be a valid window handle. 
  904.  
  905. Note:  The use of DLLName, resource can be used by any PM REXX-based program, 
  906. and retrieves the requested bitmap.  If DLLname is in your LIBPATH, do not 
  907. specify an extension of '.DLL'. 
  908.  
  909.  Example: 
  910.  
  911.      value = VpLoadPicture('FILE','C:\OS2\BITMAP\OS2LOGO.BMP')
  912.      Call RxDrawBitmap window, 2000, value
  913.  
  914. Results: 
  915.  
  916.      The Free From window with ID=2000 in window 'window'
  917.      has the OS2LOGO bitmap drawn inside it or the bitmap
  918.      with number 3 in MYDLL.DLL is drawn in window 'MyWindow'.
  919.  
  920. Note:  This API may work with other window types, it just has not been tested 
  921. with them. 
  922.  
  923.  
  924. ΓòÉΓòÉΓòÉ 34. Scroll a listbox ΓòÉΓòÉΓòÉ
  925.  
  926. ΓöÇΓöÇΓöÇRXSCROLLISTBOX(ΓöÇΓöÇwinidΓöÇΓöÇ,ΓöÇ[ΓöÇΓöÇlbidΓöÇΓöÇ]ΓöÇ,ΓöÇΓöÇnumLinesToScroll.ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  927.  
  928.  
  929. Scrolls the ListBox lbid of Window winid by numLinesToScroll lines. A negative 
  930. value should be used to scroll up, a positive value to scroll the listbox down. 
  931.  
  932. If winid and/or lbid are invalid, RXSCROLLLISTBOX raises the REXX error 
  933. condition INCORRECT CALL TO ROUTINE. 
  934.  
  935. If lbid is omitted, winid is assumed to be the window handle of a listbox. 
  936.  
  937. if numLinesToScroll is not numeric, the listbox is simply not scrolled. 
  938.  
  939. Otherwise, RXSCROLLLISTBOX returns an empty string (""). 
  940.  
  941. REXX Example: 
  942.  
  943.      Call RxScrollListBox window, 1000, -3
  944.  
  945. Results: 
  946.  
  947.      The contents of ListBox 1000 of window window will be scrolled
  948.      up 3 lines
  949.  
  950.  
  951. ΓòÉΓòÉΓòÉ 35. Set/Get listbox item associated text ΓòÉΓòÉΓòÉ
  952.  
  953. ΓöÇΓöÇΓöÇRXLISTBOXITEMHANDLE(ΓöÇΓöÇwindowΓöÇΓöÇ,ΓöÇ[ΓöÇΓöÇlistboxidΓöÇΓöÇ]ΓöÇ,ΓöÇΓöÇindexΓöÇΓöÇ[,ΓöÇΓöÇvalueΓöÇΓöÇ])ΓöÇΓöÇΓöÇ
  954.  
  955.  
  956. This call either sets or queries text associated with a ListBox item. It does 
  957. not change the text of the item or affect it in any other way. 
  958.  
  959. If winid and/or index are invalid, RXLISTBOXFROMSTEM raises an INCORRECT CALL 
  960. TO ROUTINE from within REXX. 
  961.  
  962. If the value parameter is omittted, RXLISTBOXITEMHANDLE returns the text 
  963. associated with that list box item (it's handle). 
  964.  
  965. If the value parameter is specified, RXLISTBOXITEMHANDLE sets the text 
  966. associated with that list box item to the value. 
  967.  
  968. If the listboxid  parameter is omitted, window is assumed to be the window 
  969. handle of a listbox. 
  970.  
  971. Example: 
  972.  
  973.      Call RxListBoxItemHandle window, 1000, 1, 'Line 1 must not be deleted'
  974.  
  975. Results: 
  976.  
  977.      The first item (index 1) with have the text
  978.      'Line 1 must not be deleted' associated with it.
  979.  
  980.      This text can be queried using RxListBoxItemHandle
  981.      by omitting the value parameter.
  982.  
  983.  
  984. ΓòÉΓòÉΓòÉ 36. Get executable program name ΓòÉΓòÉΓòÉ
  985.  
  986. ΓöÇΓöÇΓöÇRXGETEXENAME(ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  987.  
  988.  
  989. Returns the name of the executable currently running your REXX Code. 
  990.  
  991. Example: 
  992.  
  993.      Say "The current running program is "RxGetEXEName()
  994.  
  995. Results: 
  996.  
  997.      The current running program is CMD.EXE     /* possibly */
  998.  
  999.  
  1000. ΓòÉΓòÉΓòÉ 37. Get a list of available printers ΓòÉΓòÉΓòÉ
  1001.  
  1002. ΓöÇΓöÇΓöÇRXQUEUELIST(ΓöÇΓöÇstemΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1003.  
  1004.  
  1005. Returns a list of print queues available for the workstation. 
  1006.  
  1007. If stem is not a valid string, or is omitted, RXQUEUELIST raises an INVALID 
  1008. CALL TO ROUTINE condition from within REXX. 
  1009.  
  1010. RXQUEUELIST fills the stem passed with the Print Queues available. stem.0 
  1011. contains the number of queues available. stem.1 contains the first queue found, 
  1012. stem.2 contains the second queue, up to stem.n contain ing the nth queue, where 
  1013. n = stem.0. 
  1014.  
  1015. stem.n.DRIVERNAME holds the print driver associated with the nth queue. This 
  1016. will be needed for other printer API calls, as the Queue Name may not be 
  1017. unique. 
  1018.  
  1019. stem.default returns the index of the default queue (from 1 to stem.0). 
  1020.  
  1021. Example: 
  1022.  
  1023.      Call RxQueueList 'queues.'
  1024.      Do i = 1 to queues.0
  1025.        Say 'Queue 'i' is 'queues.i
  1026.      End
  1027.      def = queues.default
  1028.      Say 'The default print queue is 'queues.def
  1029.      Say 'The driver for this queue is 'queues.i.drivername
  1030.  
  1031. Output: 
  1032.  
  1033.      Queue 1 is Printer
  1034.      Queue 2 is Apple LaserWriter Plus on COM2
  1035.      Queue 3 is Epson LQ-580
  1036.      The default print queue is Apple LaserWriter Plus on COM2
  1037.      The driver for this queue is PSCRIPT.Apple LaserWriter
  1038.  
  1039.  
  1040. ΓòÉΓòÉΓòÉ 38. Set the default printer queue ΓòÉΓòÉΓòÉ
  1041.  
  1042. Sets the default print queue for a workstation. 
  1043.  
  1044. The parameter passed is the queue name concatenated to the driver name with a 
  1045. period. To produce this name from the stem returned by RxQueueList using the 
  1046. following code :- 
  1047.  
  1048.      queueAndDriverName = queues.1 || '.' || queues.1.drivername
  1049.  
  1050. If queueAndDriverName does not exist, RXQUEUESETDEFAULT raises an 'Incorrect 
  1051. call to routine' condition. 
  1052.  
  1053. See also RxQueueList for the correct way of obtaining queue and driver names. 
  1054.  
  1055. Example: 
  1056.  
  1057.      Call RxQueueSetDefault 'Apple LaserWriter Plus on COM2.PSCRIPT.Apple LaserWriter'
  1058.  
  1059. Output: 
  1060.  
  1061.      The default queue will be changed to the Apple Laser Writer queue.
  1062.  
  1063.  
  1064. ΓòÉΓòÉΓòÉ 39. Display the job properties dialog for a queue ΓòÉΓòÉΓòÉ
  1065.  
  1066. ΓöÇΓöÇΓöÇRXQUEUEJOBPROPERTIES(ΓöÇΓöÇqueueAndDriverNameΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1067.  
  1068.  
  1069. Asks the queue specified to display a 'Job Properties' dialog for the user, so 
  1070. that they can tailor options for an imminent print job. 
  1071.  
  1072. The parameter passed is the queue name concatenated to the driver name with a 
  1073. period. To produce this name from the stem returned by RxQueueList using the 
  1074. following code :- 
  1075.  
  1076.      queueAndDriverName = queues.1 || '.' || queues.1.drivername
  1077.  
  1078. If queueAndDriverName does not exist, RXQUEUEJOBPROPERTIES raises an 'Incorrect 
  1079. call to routine' condition. 
  1080.  
  1081. See also RxQueueList for the correct way of obtaining queue names and driver 
  1082. names. 
  1083.  
  1084. This function requires a Presentation Manager program to work correctly. 
  1085.  
  1086. Example: 
  1087.  
  1088.      Call RxQueueJobProperties 'Apple LaserWriter Plus on COM2.PSCRIPT.Apple LaserWriter'
  1089.  
  1090. Output: 
  1091.  
  1092.      A job properties dialogue is displayed.
  1093.  
  1094.  
  1095. ΓòÉΓòÉΓòÉ 40. Write a stemmed variable to a printer queue ΓòÉΓòÉΓòÉ
  1096.  
  1097. ΓöÇΓöÇΓöÇRXQUEUEWRITESTEM(ΓöÇΓöÇqueueAndDriverName, stemΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1098.  
  1099.  
  1100. Writes the entries stem.1, stem.2, stem.3 to stem.n where n = stem.0, to the 
  1101. Queue identified by queueAndDriverName. 
  1102.  
  1103. The first parameter passed is the queue name concatenated to the driver name 
  1104. with a period. To produce this name from the stem returned by RxQueueList using 
  1105. the following code :- 
  1106.  
  1107.      queueAndDriverName = queues.1 || '.' || queues.1.drivername
  1108.  
  1109. If queueAndDriverName does not exist, or a stem is not specified, 
  1110. RXQUEUEWRITESTEM raises an 'Incorrect call to routine' condition. 
  1111.  
  1112. stem.jobname specifies the name that is to appear in the printer queue for this 
  1113. print job. 
  1114.  
  1115. stem.priority specifies the priority (1 to 99) that is to be given to this 
  1116. print job. 
  1117.  
  1118. stem.copies specifies the number of copies of this print image to be printed. 
  1119.  
  1120. See also RxQueueList for the correct way of obtaining queue names and driver 
  1121. names. 
  1122.  
  1123. This function requires a Presentation Manager program to work correctly. 
  1124.  
  1125. Example: 
  1126.  
  1127.      temp.0 = 3
  1128.      temp.1 = 'A line of print'
  1129.      temp.2 = 'may not be worth the paper it is printed on....'
  1130.      temp.3 = '                         Beware'
  1131.      temp.priority = 50
  1132.      temp.jobname = 'My Quote'
  1133.      temp.copies = 1000
  1134.      Call RxQueueWriteStem 'Apple LaserWriter Plus on COM2.PSCRIPT.Apple LaserWriter', 'temp.'
  1135.  
  1136. Output: 
  1137.  
  1138.      One THOUSAND COPIES of the 3 line quote are produced on an
  1139.      Apple LaserWriter Plus printer.
  1140.      All text longer than one line is wrapped, and if the text is
  1141.      more than one page, multiple pages are written out.
  1142.  
  1143.  
  1144. ΓòÉΓòÉΓòÉ 41. Create an event semaphore ΓòÉΓòÉΓòÉ
  1145.  
  1146. ΓöÇΓöÇΓöÇRXEVENTCREATE(ΓöÇΓöÇnameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1147.                            ΓööΓöÇΓöÇ,statusΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1148.  
  1149.  
  1150. Creates an event used for process or thread synchronisation. 
  1151.  
  1152. If the name or status (if passed) are invalid strings, RXEVENTCREATE raises an 
  1153. INCORRECT CALL TO ROUTINE from within REXX. 
  1154.  
  1155. RXEVENTCREATE returns a handle which uniquely identifies the event if 
  1156. successful, or "Error creating event" if unsuccessful. 
  1157.  
  1158. The handle returned is for use with RxEventDestroy. 
  1159.  
  1160. Example: 
  1161.  
  1162.      hEvent = RxEventCreate('FileLoad')
  1163.  
  1164. Output: 
  1165.  
  1166.      An event called 'FileLoad' is created and
  1167.      a handle to it is returned in hEvent.
  1168.  
  1169.  
  1170. ΓòÉΓòÉΓòÉ <hidden> RxEventCreate name, status ΓòÉΓòÉΓòÉ
  1171.  
  1172. The status parameter should be either 'Occurred' or 'Waiting'. Only the first 
  1173. character is significant, and defaults to 'Waiting'. 
  1174.  
  1175.  
  1176. ΓòÉΓòÉΓòÉ <hidden> RxEventWaitFor name, timeout ΓòÉΓòÉΓòÉ
  1177.  
  1178. The timeout parameter should be either a time specified in milliseconds or 
  1179. 'Forever'. Only the first character of 'Forever' is significant. 
  1180.  
  1181. 'Forever' is the default. 
  1182.  
  1183.  
  1184. ΓòÉΓòÉΓòÉ <hidden> RxResourceCreate name, status ΓòÉΓòÉΓòÉ
  1185.  
  1186. The status parameter should be either 'Owned' or 'Unowned'. Only the first 
  1187. character is significant, and defaults to 'Unowned'. 
  1188.  
  1189.  
  1190. ΓòÉΓòÉΓòÉ <hidden> RxResourceRequest name, timeout ΓòÉΓòÉΓòÉ
  1191.  
  1192. The timeout parameter should be either a time specified in milliseconds or 
  1193. 'Forever'. Only the first character of 'Forever' is significant. 
  1194.  
  1195. 'Forever' is the default. 
  1196.  
  1197.  
  1198. ΓòÉΓòÉΓòÉ 42. Destroy an event semaphore ΓòÉΓòÉΓòÉ
  1199.  
  1200. ΓöÇΓöÇΓöÇRXEVENTDESTROY(ΓöÇΓöÇhandleΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1201.  
  1202.  
  1203. Destroys the event used for process or thread synchronisation. 
  1204.  
  1205. If the handle is not passed, RXEVENTDESTROY raises an INCORRECT CALL TO ROUTINE 
  1206. from within REXX. 
  1207.  
  1208. RXEVENTDESTROY returns "" if successful. 
  1209.  
  1210. A valid handle is obtained when the event is created, using RxEventCreate. 
  1211.  
  1212. Example: 
  1213.  
  1214.      Call RxEventDestroy hEvent
  1215.  
  1216. Output: 
  1217.  
  1218.      An event called 'FileLoad' which was previously
  1219.      created, and whose hand is stored in hEvent is
  1220.      destroyed and a NULL string is returned.
  1221.  
  1222.  
  1223. ΓòÉΓòÉΓòÉ 43. Wait for an event to occur ΓòÉΓòÉΓòÉ
  1224.  
  1225. ΓöÇΓöÇΓöÇRXEVENTWAITFOR(ΓöÇΓöÇnameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1226.                             ΓööΓöÇΓöÇ,timeoutΓöÇΓöÇΓöÇΓöÇΓöÿ
  1227.  
  1228.  
  1229. Waits for the event name used for process or thread synchronisation to occur. 
  1230. The REXX program that calls this function is blocked until either the event 
  1231. occurs, or the timeout period expires. 
  1232.  
  1233. If the name is not passed, RXEVENTDESTROY raises an INCORRECT CALL TO ROUTINE 
  1234. from within REXX. 
  1235.  
  1236. RXEVENTWAITFOR returns "Event occurred" if successful, "Timeout waiting for 
  1237. event", "Interrupted waiting for event", "Error waiting for event" if there is 
  1238. an error during waiting,  or "Error finding event" if the event name is 
  1239. incorrect. 
  1240.  
  1241. Example: 
  1242.  
  1243.      Call RxEventWaitFor 'FileLoad', 500
  1244.      Say result
  1245.  
  1246. Output: 
  1247.  
  1248.      An event called 'FileLoad' which was previously
  1249.      created is waited on for 1/2 a second.
  1250.      The REXX special variable result holds the value returned
  1251.      by the function call.
  1252.  
  1253.  
  1254. ΓòÉΓòÉΓòÉ 44. Set event occurred ΓòÉΓòÉΓòÉ
  1255.  
  1256. ΓöÇΓöÇΓöÇRXEVENTOCCURRED(ΓöÇΓöÇnameΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1257.  
  1258.  
  1259. Notifies any waiting programs that the event name has occurred. This tells all 
  1260. waiting programs to continue execution. Programs wait for an event by calling 
  1261. RxEventWaitFor. 
  1262.  
  1263. If the name is not passed, RXEVENTOCCURRED raises an INCORRECT CALL TO ROUTINE 
  1264. from within REXX. 
  1265.  
  1266. RXEVENTOCCURRED returns "" if successful, "Error finding event" if the event 
  1267. name is incorrect, or "Event already in 'occurred' state" if the event named 
  1268. has already occurred without being reset by RxEventReset. 
  1269.  
  1270. Example: 
  1271.  
  1272.      Call RxEventOccurred 'FileLoad'
  1273.  
  1274. Output: 
  1275.  
  1276.      An event called 'FileLoad' which was previously
  1277.      created is marked as 'occurred' and a NULL string is returned.
  1278.      All programs waiting on this event with RxEventWaitFor continue
  1279.      execution.
  1280.  
  1281.  
  1282. ΓòÉΓòÉΓòÉ 45. Reset event state ΓòÉΓòÉΓòÉ
  1283.  
  1284. ΓöÇΓöÇΓöÇRXEVENTRESET(ΓöÇΓöÇnameΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1285.  
  1286.  
  1287. Resets an event so that it is in a 'Waiting' state and sets the count of event 
  1288. occurrences back to zero. 
  1289.  
  1290. If the name is not passed, RXEVENTRESET raises an INCORRECT CALL TO ROUTINE 
  1291. from within REXX. 
  1292.  
  1293. RXEVENTRESET returns "Event occurred n times since last reset" if successful (n 
  1294. is a number), "Error finding event" if the event name is incorrect, or "Event 
  1295. already in 'reset' state" if the event named has already been reset. 
  1296.  
  1297. Example: 
  1298.  
  1299.      Say RxEventReset('FileLoad')
  1300.  
  1301. Output: 
  1302.  
  1303.      Event occurred 5 times since last reset
  1304.  
  1305.  
  1306. ΓòÉΓòÉΓòÉ 46. Get event occurred count ΓòÉΓòÉΓòÉ
  1307.  
  1308. ΓöÇΓöÇΓöÇRXEVENTQUERY(ΓöÇΓöÇnameΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1309.  
  1310.  
  1311. Returns the number of times an event has occurred since being reset. Programs 
  1312. reset an event by calling RxEventReset. 
  1313.  
  1314. If the name is not passed, RXEVENTQUERY raises an INCORRECT CALL TO ROUTINE 
  1315. from within REXX. 
  1316.  
  1317. RXEVENTQUERY returns a number if successful, "Error finding event" if the event 
  1318. name is incorrect, or "Error querying event" if some other error occurs. 
  1319.  
  1320. Example: 
  1321.  
  1322.      numTimes = RxEventQuery('FileLoad')
  1323.      Say 'The file was loaded' numTimes' times.'
  1324.  
  1325. Output: 
  1326.  
  1327.      The file was loaded 5 times.
  1328.  
  1329.  
  1330. ΓòÉΓòÉΓòÉ 47. Create a serial resource ΓòÉΓòÉΓòÉ
  1331.  
  1332. ΓöÇΓöÇΓöÇRXRESOURCECREATE(ΓöÇΓöÇnameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1333.                               ΓööΓöÇΓöÇ,statusΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1334.  
  1335.  
  1336. Creates a resource used for process or thread serialisation. 
  1337.  
  1338. If the name or status (if passed) are invalid strings, RXRESOURCECREATE raises 
  1339. an INCORRECT CALL TO ROUTINE from within REXX. 
  1340.  
  1341. RXRESOURCECREATE returns a handle which uniquely identifies the event if 
  1342. successful, or "Error creating resource" if unsuccessful. 
  1343.  
  1344. The handle returned is for use with RxResourceDestroy. 
  1345.  
  1346. Example: 
  1347.  
  1348.      hRes = RxResourceCreate('FileWrite')
  1349.  
  1350. Output: 
  1351.  
  1352.      A resource called 'FileWrite' is created and
  1353.      a handle to it is returned in hRes.
  1354.  
  1355.  
  1356. ΓòÉΓòÉΓòÉ 48. Destroy a serial resource ΓòÉΓòÉΓòÉ
  1357.  
  1358. ΓöÇΓöÇΓöÇRXRESOURCEDESTROY(ΓöÇΓöÇhandleΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1359.  
  1360.  
  1361. Destroys the resource used for process or thread serialisation. 
  1362.  
  1363. If the handle is not passed, RXRESOURCEDESTROY raises an INCORRECT CALL TO 
  1364. ROUTINE from within REXX. 
  1365.  
  1366. RXRESOURCEDESTROY returns "" if successful. 
  1367.  
  1368. A valid handle is obtained when the event is created, using RxResourceCreate. 
  1369.  
  1370. Example: 
  1371.  
  1372.      Call RxResourceDestroy hResource
  1373.  
  1374. Output: 
  1375.  
  1376.      A resource called 'FileWrite' which was previously
  1377.      created, and whose handle is stored in hResource is
  1378.      destroyed and a NULL string is returned.
  1379.  
  1380.  
  1381. ΓòÉΓòÉΓòÉ 49. Request a serial resource ΓòÉΓòÉΓòÉ
  1382.  
  1383. ΓöÇΓöÇΓöÇRXRESOURCEREQUEST(ΓöÇΓöÇnameΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1384.                                ΓööΓöÇΓöÇ,timeoutΓöÇΓöÇΓöÇΓöÇΓöÿ
  1385.  
  1386.  
  1387. Waits for the resource name used for process or thread serialisation to become 
  1388. available. The REXX program that calls this function is blocked until either 
  1389. the resource becomes available, or the timeout period expires. 
  1390.  
  1391. If the name is not passed, RXRESOURCEREQUEST raises an INCORRECT CALL TO 
  1392. ROUTINE from within REXX. 
  1393.  
  1394. RXRESOURCEREQUEST returns "Resource available" when the resource becomes 
  1395. available, "Error finding event" if the event name is incorrect, or "Timeout 
  1396. waiting for resource" if the timeout period expires, "Interrupted waiting for 
  1397. resource" if OS/2 interrupts the request, or "Error waiting for resource" if 
  1398. there is an error during the request. 
  1399.  
  1400. Example: 
  1401.  
  1402.      Say RxResourceRequest('FileWrite')
  1403.  
  1404. Output: 
  1405.  
  1406.      Resource Available
  1407.  
  1408.      The REXX program is suspended until the resource 'FileWrite'
  1409.      is available.
  1410.  
  1411.  
  1412. ΓòÉΓòÉΓòÉ 50. Release a serial resource ΓòÉΓòÉΓòÉ
  1413.  
  1414. ΓöÇΓöÇΓöÇRXRESOURCERELEASE(ΓöÇΓöÇnameΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1415.  
  1416.  
  1417. Releases the named resource so that the next waiting program can obtain access 
  1418. to the resource. 
  1419.  
  1420. If the name is not passed, RXRESOURCERELEASE raises an INCORRECT CALL TO 
  1421. ROUTINE from within REXX. 
  1422.  
  1423. RXRESOURCERELEASE returns "" if successful, "Error finding resource" if the 
  1424. resource name is incorrect. 
  1425.  
  1426. Example: 
  1427.  
  1428.      Call RxResourceRelease 'FileWrite'
  1429.  
  1430. Output: 
  1431.  
  1432.      The resource called 'FileWrite' which was previously
  1433.      created is released so that other programs or threads can
  1434.      access it.
  1435.      Only one thread can obtain the resource at any point in time.
  1436.  
  1437.  
  1438. ΓòÉΓòÉΓòÉ 51. Get resource wait count ΓòÉΓòÉΓòÉ
  1439.  
  1440. ΓöÇΓöÇΓöÇRXRESOURCEQUERY(ΓöÇΓöÇnameΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1441.  
  1442.  
  1443. Returns the number of threads that are waiting for a resource. 
  1444.  
  1445. If the name is not passed, RXRESOURCEQUERY raises an INCORRECT CALL TO ROUTINE 
  1446. from within REXX. 
  1447.  
  1448. RXRESOURCEQUERY returns a number if successful, "Error finding resource" if the 
  1449. resource name is incorrect, or "Error querying resource" if some other error 
  1450. occurs. 
  1451.  
  1452. Example: 
  1453.  
  1454.      numWaiters = RxResourceQuery('FileWrite')
  1455.      Say 'There are' numWaiters' threads waiting to write to the file.'
  1456.  
  1457. Output: 
  1458.  
  1459.      There are 5 threads waiting to write to the file.
  1460.  
  1461.  
  1462. ΓòÉΓòÉΓòÉ 52. File exists? ΓòÉΓòÉΓòÉ
  1463.  
  1464. ΓöÇΓöÇΓöÇRXFILEEXISTS(file)ΓöÇΓöÇΓöÇ
  1465.  
  1466.  
  1467. Returns '1' if the file specified exists, '0' otherwise. 
  1468.  
  1469. RXFILEEXISTS will raise the REXX error condition INCORRECT CALL TO ROUTINE if a 
  1470. filename is not passed. 
  1471.  
  1472. Example: 
  1473.  
  1474.      If RxFileExists('C:\CONFIG.SYS') Then Say 'I found your CONFIG.SYS!'
  1475.  
  1476. Output: 
  1477.  
  1478.      I found your CONFIG.SYS       /* perhaps */
  1479.  
  1480.  
  1481. ΓòÉΓòÉΓòÉ 53. Get item text ΓòÉΓòÉΓòÉ
  1482.  
  1483. ΓöÇΓöÇΓöÇRXWINDOWQUERYTEXT(ΓöÇΓöÇwindowΓöÇΓöÇ[,ΓöÇΓöÇidΓöÇΓöÇ]ΓöÇΓöÇ)ΓöÇΓöÇΓöÇ
  1484.  
  1485. Returns the text of the window identified by either the window alone, or by the 
  1486. window and an id This will give you the text of an entry field or MLE, or 
  1487. static text. 
  1488.  
  1489. If window is an invalid string, RXWINDOWQUERYTEXT raises the REXX error 
  1490. condition INCORRECT CALL TO ROUTINE. 
  1491.  
  1492. This function was written specifically to correct bugs with MLE's in 
  1493. VisPro/REXX V1.1. 
  1494.  
  1495. Example: 
  1496.  
  1497.      value = RxWindowQueryText(window, 1001)
  1498.      /* id 1001 is an MLE */
  1499.  
  1500. Results: 
  1501.  
  1502.     Places the text of the window into the variable value.
  1503.