home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / wpsorexx.zip / wpObjectOpen.CMD < prev    next >
OS/2 REXX Batch file  |  2002-07-10  |  2KB  |  48 lines

  1. /* REXX *********************************************************************
  2.  * Öffnet Workplace Object
  3.  ******************************************************************************
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation; either version 2 of the License, or
  7.  * (at your option) any later version.
  8.  *
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  ******************************************************************************
  18.  *
  19.  * $Archive:   G:/Archive/ORexx/WorkPlace/wpObjectOpen.CMD,v  $
  20.  * $Workfile:   wpObjectOpen.CMD  $
  21.  * $Author:   Martin_Krischik  $
  22.  * $Revision:   1.0  $
  23.  * $Name:$
  24.  * $Date:   24 Aug 1997 13:34:28  $
  25.  * $Log:   G:/Archive/ORexx/WorkPlace/wpObjectOpen.CMD,v  $
  26.  *
  27.  *     Rev 1.0   24 Aug 1997 13:34:28   Martin_Krischik
  28.  *  Workplace Shell support.
  29.  *
  30.  ****************************************************************************/
  31.  
  32. wpObjectOpen:
  33.     PARSE ARG Objektname
  34.  
  35. /*  SAY 'Objectname : ' Objectname */
  36.  
  37.     Result = SYSSetObjectData(Objectname, 'open=default')
  38.  
  39.     IF Result = 1 THEN
  40.       DO
  41.         SAY 'Object' Objectname 'successfull opened.'
  42.       END
  43.     ELSE
  44.       DO
  45.         SAY 'Object' Objectname ' - not opened.'
  46.       END
  47. RETURN
  48.