Changeset 34 for trunk/gui/printer/cupswiz/cupswiz.VRX
- Timestamp:
- May 1, 2013, 3:01:18 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/printer/cupswiz/cupswiz.VRX
r32 r34 17 17 argOff = 1 18 18 end 19 InitArgs.0 = argCount 20 if( argCount > 0 )then do i = 1 to argCount 21 InitArgs.i = arg( i + argOff ) 22 end 19 23 end; else do 20 24 call VROptions 'ImplicitNames' 21 25 call VROptions 'NoEchoQuit' 22 end 23 InitArgs.0 = argCount 24 if( argCount > 0 )then do i = 1 to argCount 25 InitArgs.i = arg( i + argOff ) 26 argCount = _ParseParams( arg(1) ) 26 27 end 27 28 drop calledAs argCount argOff … … 101 102 */ 102 103 return 104 /*:VRX _ParseParams 105 */ 106 _ParseParams: PROCEDURE EXPOSE InitArgs. 107 /* Parse program parameters when they are provided as a single string, 108 * including handling quotes. 109 */ 110 111 parse arg thisArgs 112 113 InitArgs. = '' 114 InitArgs.0 = 0 115 116 do while thisargs <> '' 117 118 parse value strip( thisArgs, "B" ) with curArg thisArgs 119 120 parse var curArg tc1 +1 . 121 if tc1 = '"' | tc1 = "'" then 122 parse value curArg thisArgs with (tc1) curArg (tc1) ThisArgs 123 124 i = InitArgs.0 + 1 125 InitArgs.i = strip( curArg ) 126 InitArgs.0 = i 127 128 end /* do while thisArgs <> '' */ 129 130 RETURN InitArgs.0 131 103 132 /*:VRX CheckPrograms 104 133 */ … … 1098 1127 globals.!cupsdir = InitArgs.1 1099 1128 ELSE IF InitArgs.i == '/R' THEN DO 1100 globals.!cupsdir = '' 1101 _force_remote = 1 1129 say 'remote' 1130 globals.!cupsdir = '' 1131 _force_remote = 1 1102 1132 END 1103 1133 ELSE IF VRFileExists( InitArgs.i ) THEN DO
Note:
See TracChangeset
for help on using the changeset viewer.