In that case, one has to find other solutions.
Yours will work only if you set the value from the command line.
Any thing hard coded will come back to haunt you


At the R>
SET VAR vSpecialCase TEXT = 'W2print'

--In the code
SET VAR vSpecialCase TEXT
IF vSpecialCase IS NOT NULL AND +
   vSpecialCase = 'W2Print' THEN
  --Do Special Case
ENDIF

Dennis

________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of Doug Hamilton
Sent: Wednesday, January 14, 2009 10:21 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Printing Issue - SOLVED!!

Dennis, couldn't that cause problems if the code relies on the actual logged-in 
R:Base user's name?
How 'bout something similar to:
--Somewhere before code is run
SET VAR vSpecialCase TEXT = 'W2print'

--In the code
IF vSpecialCase IS NOT NULL AND +
   vSpecialCase = 'W2Print' THEN
  --Do Special Case
ENDIF

Doug

Dennis McGrath wrote:

This brings up a really handy technique for doing things like this, where you 
want something special but will have to remove the code when done.  It is too 
easy to forget and trip over it later.

IF (CVAL('NAME')) = 'unusualandunique' then
    --DO THE SPECIAL THING
ENDIF

At the R> SET NAME unusualandunique

Now run the code.

If you forget to remove the extra code, no one will ever trip over it.

Dennis McGrath


________________________________
From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On 
Behalf Of Gray, Damon
Sent: Wednesday, January 14, 2009 9:30 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Printing Issue - SOLVED!!

Man, this is NUTS!!  Someone had hard coded in the W2.ASC to print all W2s 
where LName < "phillips"

Augh!!!

There was probably some issue last year that caused them to need to restart the 
run or something, so my predecessor's predecessor, hard coded a value in 
there...

Anyway, as always, thanks to everyone on this list.  You're all always so 
helpful!

- damon

________________________________
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On Behalf Of James Bentley
Sent: Wednesday, January 14, 2009 7:22 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Printing Issue

Are their non-standard characters in any fields of that particular record?

Jim Bentley
American Celiac Society
[email protected]<mailto:[email protected]>
tel: 1-504-737-3293


________________________________
From: "Gray, Damon" <[email protected]><mailto:[email protected]>
To: RBASE-L Mailing List <[email protected]<mailto:[email protected]>>
Sent: Wednesday, January 14, 2009 9:17:13 AM
Subject: [RBASE-L] - Printing Issue
We are printing W2 forms for about 650 employees.  R:Base 6.5++ is printing 
about 2/3 of them, and stopping on a specific name.  Thinking it may be a print 
buffer issue, we tried a beefier printer.  Stopped on  exactly the same name.  
Similarly, we tried printing from a different machine.  Exact same result.

Thinking this may be a workaround, I removed all rows from the temporary table 
down to the "Ps" which included the last employee printed and the two above 
him, leaving us with about 150 or so rows and re-ran the print job.  It printed 
three W2s;  the last employee printed and the two above him.

Why won't these W2s print?  I don't even know where to begin investigating this.



                Damon J. Gray

Anvil Corporation Business Services

                   (360) 937-0770



Reply via email to