labels
Kenneth Brody
kenbrody at spamcop.net
Thu Jul 31 14:45:11 PDT 2014
On 7/31/2014 5:23 PM, Richard Kreiss wrote:
> One can use a label on an if line.
>
> Fpbad if: amount= "" and status ge "1"
> Then:
> Fptrue if: amount ne "" and status ge "2"
> Then:
> Fpneg if amount lt "0.00" and status = "9"
> Then:
>
> The above sets 3 possibilities;
>
> If: fpbad
> Then: GOTO empty
> If: fptrue
> Then: GOTO dothis
> If: fpneg
> Then: GOTO dothat
>
> My question is how many labels will filepro recognize?
As I recall, by default, you can have up to 1000 labels. This can be
changed with PFLBSIZE.
> I have some subroutines that are or can be accessed a number of times
> but based on where it came from, different processing occurs and where at the
> end of the routine the return is. Some end with a Screen ,nn, some end in a
> return or a GOTO.
>
> Will the label hold if there is additional processing prior to using the
> label on the if line? If so, how deep can one go?
What do you mean by "how deep"?
The value of a label is set when that line is executed, and it retains that
value regardless of any other processing that you run, unless/until you
execute that line again. As I recall, a label which has not been executed
is "false".
--
Kenneth Brody
More information about the Filepro-list
mailing list