home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / wpsorexx.zip / wpObjectSetData.CMD < prev    next >
OS/2 REXX Batch file  |  2002-07-10  |  2KB  |  49 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/wpObjectSetData.CMD,v  $
  20.  * $Workfile:   wpObjectSetData.CMD  $
  21.  * $Author:   Martin_Krischik  $
  22.  * $Revision:   1.0  $
  23.  * $Name:$
  24.  * $Date:   24 Aug 1997 13:34:30  $
  25.  * $Log:   G:/Archive/ORexx/WorkPlace/wpObjectSetData.CMD,v  $
  26.  *
  27.  *     Rev 1.0   24 Aug 1997 13:34:30   Martin_Krischik
  28.  *  Workplace Shell support.
  29.  *
  30.  *****************************************************************************/
  31.  
  32. wpObjectSetData:
  33.     PARSE ARG Objectname'; ' Setup
  34.  
  35.     SAY 'Objektname : ' Objectname
  36.     SAY 'Setup      : ' Setup
  37.  
  38.     Result = SYSSetObjectData(Objectname, Setup)
  39.  
  40.     IF Result = 1 THEN
  41.       DO
  42.         SAY 'Object' Objectname 'successfull updated.'
  43.       END
  44.     ELSE
  45.       DO
  46.         SAY 'Object' Objectname ' - not updated.'
  47.       END
  48. RETURN
  49.