Home > Back-end >  This cycle should be how to write? additive
This cycle should be how to write? additive

Time:12-18

The effect of current
If ADOQuery1. RecordCount + ADOQuery2. RecordCount=1 Then
PrintForm1. QuickRep1. Height:=400;

I want to achieve the effect of is
When ADOQuery1. RecordCount + ADOQuery2. RecordCount=2 + 1
//here ifPrintForm1. QuickRep1. Height:=450//here will add 50

According to this rule,

CodePudding user response:

=400 + 50 * (n - 1)

CodePudding user response:

 
PrintForm1. QuickRep1. Height:=350 + ((ADOQuery1. RecordCount + ADOQuery2. RecordCount) * 50);
  • Related