home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
vxcliser.zip
/
VXREXX.2
/
MACROS
/
EPMPROTO.VRM
next >
Wrap
Text File
|
1994-12-23
|
2KB
|
64 lines
/* Custom mainline for macro */
call RXFuncAdd "VRLoadFuncs", "VROBJ", "VRLoadFuncs"
call VRLoadFuncs
_VREVersion = SubWord( VRVersion( "VRObj" ), 1, 1 )
if( _VREVersion < 2.00 )then do
call VRMessage "", "This program requires VX-REXX version 2.00 to run", "Error!"
return 32000
end
signal on SYNTAX name _VRESyntax
signal _VREMain
_VRESyntax:
parse source . . _VRESourceSpec
call VRMessage "", "Syntax error in" _VRESourceSpec "line" SIGL, "Error!"
exit 32000
_VREMain:
/*:VRX Main
*/
/* EPMProto.ERX
Invoke the VX-REXX code generation dialogs from within the
Enhanced Editor (EPM).
To use this macro you must set the VXREXX environment variable
to the VX-REXX root directory (e.g. C:\VXREXX).
*/
Main:
epmWindow = VRMethod( "Screen", "GetActiveWindow" )
call VRMethod "Application", "PutVar", "epmWindow"
vrxpath = value( "VXREXX",,"OS2ENVIRONMENT" )
if( vrxpath = "" ) then do
call VRMessage , "The VXREXX environment variable is not set.", , "E"
signal Done
end
if( Stream( vrxpath || "\VRXEDIT.EXE", 'c', 'query exists' ) = "" ) then do
vredisp = '"\VREDisp.VRM"'
end
else do
vredisp = '"' || VRXPath || '\VREDisp.VRM"'
end
call VRMethod "Application", "PutClipboard", ""
interpret 'codeString =' vredisp || '( "", "", "CLIPBOARD" )'
if( codeString = "" ) then do
signal Done
end
parse VAR codeString "0d0a"x codeString
if( codeString = "" ) then do
"PASTE C"
end
else do
"PASTE B"
end
Done:
drop vrxpath vredisp codeString
return