Using Variables with the {SUB} Function

Questions, comments, and suggestions related to Typeitin.
Post Reply
Lewis Clark
Posts: 7
Joined: Wed Aug 07, 2019 7:02 am

Using Variables with the {SUB} Function

Post by Lewis Clark » Sat Mar 13, 2021 5:41 am

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.

Wavget
Site Admin
Posts: 91
Joined: Wed Jan 16, 2019 4:32 pm

Re: Using Variables with the {SUB} Function

Post by Wavget » Tue Mar 23, 2021 3:22 pm

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.

Lewis Clark
Posts: 7
Joined: Wed Aug 07, 2019 7:02 am

Re: Using Variables with the {SUB} Function

Post by Lewis Clark » Wed Mar 24, 2021 7:56 pm

Paul
Thank you for the reply.

Wavget
Site Admin
Posts: 91
Joined: Wed Jan 16, 2019 4:32 pm

Re: Using Variables with the {SUB} Function

Post by Wavget » Wed Aug 18, 2021 2:57 pm

The beta version is now available at https://www.wavget.com/download/beta/

Post Reply