Is there a way I can call a method x amount of times. Such as in a for loop.
*This post is locked for comments
Original:
<DOCUMENT>
<CALL> "PrintCreditCardSlip" </CALL>
<CALL> "PrintHeader" </CALL>
<CALL> "PrintTransactionType" </CALL>
<CALL> "PrintCustomerData" </CALL>
<CALL> "PrintTransactionComment" </CALL>
<CALL> "PrintDropPayout" </CALL>
<CALL> "PrintAccountPayment" </CALL>
<CALL> "PrintTransactionDetails" </CALL>
<CALL> "PrintTransactionTotals" </CALL>
<CALL> "PrintVATAnalysis" </CALL>
<CALL> "PrintDiscounts" </CALL>
<CALL> "PrintBarcode" </CALL>
<CALL> "PrintFooter" </CALL>
</DOCUMENT>
Duplicate function calls to PrintFooter
<DOCUMENT>
<CALL> "PrintCreditCardSlip" </CALL>
<CALL> "PrintHeader" </CALL>
<CALL> "PrintTransactionType" </CALL>
<CALL> "PrintCustomerData" </CALL>
<CALL> "PrintTransactionComment" </CALL>
<CALL> "PrintDropPayout" </CALL>
<CALL> "PrintAccountPayment" </CALL>
<CALL> "PrintTransactionDetails" </CALL>
<CALL> "PrintTransactionTotals" </CALL>
<CALL> "PrintVATAnalysis" </CALL>
<CALL> "PrintDiscounts" </CALL>
<CALL> "PrintBarcode" </CALL>
<CALL> "PrintFooter" </CALL>
<CALL> "PrintFooter" </CALL>
<CALL> "PrintFooter" </CALL>
<CALL> "PrintFooter" </CALL>
</DOCUMENT>
hi. Thanks for the reply.
can you give an example of this.
thanks
there is a loop function but it is a For Each kind of loop instead of a For X.
The only why to do a for X is for if statements and repeating the same code multiple times.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,900 Super User 2024 Season 2
Martin Dráb 229,297 Most Valuable Professional
nmaenpaa 101,156