#203062 - 2011-09-08 06:27 PM
Re: alternate command
[Re: mtnclimber]
|
ShaneEP
MM club member
   
Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
|
My guess is that those last two lines are caused by trying to map to blank printers. For example if an empty line is at the end of your printer.ini file, it will still be read and will return a vartype of 8, but of course will fail because its blank. I would replace the entire Vartype check with a Len check to verify that it actually contains data.
Maybe change both of the lines from this... To something like this... This will trim all leading and trailing space, and then verify that its still atleast 1 char long.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 987 anonymous users online.
|
|
|