Changeset 45 for trunk/gui/shared
- Timestamp:
- Sep 18, 2013, 1:08:11 AM (12 years ago)
- Location:
- trunk/gui/shared
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/shared/PrManUtl.VRS
r44 r45 292 292 /* Determine if the specified PrinterPak driver already contains support 293 293 * for the specified printer model. 294 * 295 * If so, return the name of the model as found in the driver (necessary in 296 * order to make sure the correct case is retained, which may be different 297 * from what was requested). Otherwise return ''. 294 298 */ 295 299 PrinterExistsInDRV: PROCEDURE EXPOSE globals. … … 312 316 */ 313 317 start = 1 314 found = 0318 found = '' 315 319 DO WHILE ( found == 0 ) & ( start < total_len ) 316 320 _strend = POS('0'x, exist_models, start ) 317 321 IF _strend == 0 THEN LEAVE 318 _model = TRANSLATE( SUBSTR( exist_models, start, _strend - start ))319 IF _model== printer_name THEN320 found = 1322 _model = SUBSTR( exist_models, start, _strend - start ) 323 IF TRANSLATE( _model ) == printer_name THEN 324 found = _model 321 325 ELSE 322 326 start = _strend + 1 -
trunk/gui/shared/PrintUtl.VRS
r38 r45 177 177 /* Determine if the specified PrinterPak driver already contains support 178 178 * for the specified printer model. 179 * 180 * If so, return the name of the model as found in the driver (necessary in 181 * order to make sure the correct case is retained, which may be different 182 * from what was requested). Otherwise return ''. 179 183 */ 180 184 PrinterExistsInDRV: PROCEDURE EXPOSE globals. … … 197 201 */ 198 202 start = 1 199 found = 0203 found = '' 200 204 DO WHILE ( found == 0 ) & ( start < total_len ) 201 205 _strend = POS('0'x, exist_models, start ) 202 206 IF _strend == 0 THEN LEAVE 203 _model = TRANSLATE( SUBSTR( exist_models, start, _strend - start ))204 IF _model== printer_name THEN205 found = 1207 _model = SUBSTR( exist_models, start, _strend - start ) 208 IF TRANSLATE( _model ) == printer_name THEN 209 found = _model 206 210 ELSE 207 211 start = _strend + 1
Note:
See TracChangeset
for help on using the changeset viewer.