Re: DECPASS vs EXEPASS vs PROCs


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Barbara Brazil on August 16, 2016 at 13:23:13:

In Reply to: Re: DECPASS vs EXEPASS vs PROCs posted by Robert G Laurin on August 16, 2016 at 07:39:15:

Robert:

We're not sure we understand your question. You can conditionally compile in procs like this:

!Main Proc
! Declaratives

SET doprocs = 1

.if doprocs ! Declare the procs
subroutine ProcA(a$)
subroutine ProcB(b$)
.endif

! Executable
clear
end ! End of Main Proc

.if doprocs ! Define procs
subroutine ProcA(a$)
...
end
subroutine ProcB(b$)
...
end
.endif

Depending on whether doprocs is SET or not, you can control whether the procs get included

As far as your other question, you do need to use .ELSE to test for the opposite of .IF.




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]