OS2.org Site Index - Feedback - Impressum
Sprachauswahl / Choose your Language News Software Hardware Projekte Forum Tipps Links Verschiedenes
Editorial Diskussion HelpDesk Umfrage
[Forum]
in nach (Erweiterte Suche)
[Forum]
( Archiv ) ( Neues Thema )
06.05.2001
So geht's (von: Andreas Schnellbacher, 00:52:12) « ^ »
Vielleicht interessiert es ja sonst noch jemanden:

Aus news:comp.lang.rexx
Betreff: Re: Changing Object Class in OS/2
Datum: Sat, 05 May 2001 20:57:42 +0200

Russell O'Connor wrote:
>
> Does anyone know what REXX system commands I can call in order to
> change an object type? For example to turn a MMWAV object into
> an MMAUDIO object.

There are no REXX functions to do this as easy as with the settings
page in Warp 4.

Therefore you must create a new (empty) object and add the data of
the old object.

/* REXX */

say
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs

/* Get old object */
OldObject = stream( 'Test.wav', 'c', 'query exists' )
if OldObject = '' then
return

Title = filespec( 'n', OldObject )
Location = directory( OldObject'..' )
TempTitle = Title'.temp'
TempObject = strip( Location, 'T', '' ) || ''TempTitle
Class = 'MMAudio'
Setup = ''

/* Rename old object to *.temp */
'ren 'OldObject' 'TempTitle

/* Create new empty object with old object title */
ret = SysCreateObject( Class, Title, Location, Setup, 'R' )

/* Add temp object to new empty object */
'copy 'OldObject' + 'TempObject' /b 'OldObject

/* Delete temp object */
call SysDestroyObject TempObject

return

--
Andreas Schnellbacher
[ Leser: 35 ]

Datum Thema
07.01.2017 *

*

Name: * eMail: Benachrichtigung

Mit * markierte Felder müssen ausgefüllt werden !

( Zeige alle Einträge ) ( Zur Startübersicht )
Thema von: Leser Datum Zeit
 Objektklasse mit REXX?
Andreas Schnellbacher13328.07.200018:03
 z.B. mit zwei Funktionen
GA12129.07.200013:51
 Re: z.B. mit zwei Funktionen
Andreas Schnellbacher10729.07.200019:11
 Zur Subklasse WPDataFile
GA10130.07.200014:50
 Ein Beispiel zu SysSetObjectData
GA9730.07.200018:55
 Ändern mit SysCreateObject
GA9031.07.200014:33
 Klasse mit SysPutEA aendern?
Andreas Schnellbacher8501.08.200013:27
 Nochmals: Mit SysCreateObject Paramter ändern!
GA9102.08.200008:40
 Re: Nochmals: Mit SysCreateObject Paramter ändern!
Andreas Schnellbacher7106.08.200015:37
 CLASSDEFAULTVIEW --- ein "neuer" Setup-String
Andreas Schnellbacher7106.08.200015:39
 Weitere Annahmen
GA6806.08.200016:33
 Weiterer Hinweis(I)
GA6406.08.200016:43
 Eine REXX-Routine mit der UDATE-Option mit...
GA6806.08.200016:58
 Protokoll der Routine EADUMP
GA6808.08.200011:35
 Extended Attributes mit REXX lesen und setzen
GA5803.09.200017:47
 Objektklasse A E N D E R N geht nicht mit SysCreateObjekt!
Andreas Schnellbacher5503.09.200019:29
 Re: Objektklasse A E N D E R N geht nicht mit SysCreateObjekt!
Peter W.5311.09.200009:50
 Mit SysCreateObjekt nur bestimmte Argumente..
GA4811.09.200012:24
 Re: Mit SysCreateObjekt nur bestimmte Argumente..
Sebastian Wittmeier4811.09.200017:35
 Re:
Andreas Schnellbacher4213.09.200020:37
 So geht's
Andreas Schnellbacher3506.05.200100:52
 Ja, wunderbar, Andreas!
GA2906.05.200114:38
 Re: Ja, wunderbar, Andreas!
Andreas Schnellbacher2506.05.200118:07


php.net OpenIT © 1998-2017 by WebTeam OS2.org