Page 1 of 1

Using Variables with the {SUB} Function

Posted: Sat Mar 13, 2021 5:41 am
by Lewis Clark
Hi Paul

Are variables supposed to work with the Sub function?

I have a collection of individual buttons I need to use and would like to choose them from a list. I can choose the button using the {LIST} function like this:

{Var11 List C: Fine,C: Foreclose Atty Fee,C: Interest,C: Late Fee,C: Lien,C: NSF Fee,C: Payment,C: Payment Qrtly,C: Pre Lien Fee,C: Qtrly Maint Fee,C: Write Off,Rev Additional Fee,Rev Annual Fee,Rev ELWCA,Rev Fclose Atty Fee,Rev Fine,Rev Interest,Rev Late Fee,Rev Line,Rev NSF Fee,Rev Payment,Rev Pre Lien Fee,Rev Qtrly Main Fee,Rev Refuse,Rev Rsrv-Contngncy,Rev Rsrv-Paving,Rev Rsrv-St/Walk}

I can type the button name so I know {Var11} is getting set to the correct button name.

I’m trying to press the selected button with {Sub HOA Stuff,{Var11}} but I cannot seem to get the selected button to work. TypeItIn does not recognize this use of the {SUB} function.

Using TypeItIn Professional 3.1. Thanks for any insight you can share.

Re: Using Variables with the {SUB} Function

Posted: Tue Mar 23, 2021 3:22 pm
by Wavget
Unfortunately the Sub function does not currently support variables.

This will be fixed in the next (beta)version.

A work around is using the IF function on the LIST result.

{If (Var11=C: Fine) [{Sub HOA Stuff,C: Fine}]}
{If (Var11=C: Foreclose Atty Fee) [{Sub HOA Stuff,C: Foreclose Atty Fee}]}


Paul.

Re: Using Variables with the {SUB} Function

Posted: Wed Mar 24, 2021 7:56 pm
by Lewis Clark
Paul
Thank you for the reply.

Re: Using Variables with the {SUB} Function

Posted: Wed Aug 18, 2021 2:57 pm
by Wavget
The beta version is now available at https://www.wavget.com/download/beta/