If I understand your original post correctly, you do not want to print the file if it is not there. The CHKFILE function will tell you if there is a file with that name in that directory. It will need to follow your Vassyinst variable, because that is what it is checking for. I think you are calling a PRINT function, so you would simply do something like

IF vChkFile = 1 then
  PRINT whatever
ENDIF

An alternative scenario is to create a blank dummy RTF file and print that instead.

IF vChkFile = 1 then
  PRINT &Vassyinst
ELSE
 PRINT BlankFile.rtf
ENDIF

Hope this helps
Albert

Jim Belisle wrote:
Would I put this in the on after generate band or with the other
variables?

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Albert
Berry
Sent: Wednesday, May 26, 2010 1:59 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: printing report from path

SET VAR vChkFile INTEGER = (CHKFILE(.Vassyinst))
IF vChkFile = 1 then
the file was found
ELSE
the file was not found
ENDIF

Jim Belisle wrote:
I Print a report where the assembly instructions are drawn from a location outside RBASE via the below variables:

Vassypath 'S:\JPBAssyInst\RTFAssyInst\'

Vmodeluse (Model#)

Vassyinst (.vAssypath + .vModeluse + '.rtf')

These variables are all set in the F1 band that is the Model#.

I want no page to be printed if the instructions are not found.

I realize the vassyinst will never be null because it is a string I create.

What way would there be so I force RBASE to "SEE" if the instructions are really there?

The instructions are RTF files.

Jim






Reply via email to