Skip to content

AuxiliaryTag

Provides a brief label describing the Auxiliary property for the tax requiring this information. This allows the developer to use a meaningful prompt when requesting ‘Auxiliary’ information from the end user.

Syntax

value = object.

Part Description
object A Tax object.
value A string result.

Example

Here’s how you could set up a form which asks for Auxiliary input only when needed. The auxfield.label value can be used to create a more informative form label, rather than calling this input “Auxiliary:“.

// using TaxControls;
try {
CTaxControl tc = new CTaxControl();
tc.DataFilename = "us.dat";
Tax t = tc.Taxes.Item(emp.taxname[i]);
if (t.AuxiliaryTag != "" ) {
auxfield.visible = True;
auxfield.label = t.AuxiliaryTag;
auxfield.tooltip = t.AuxiliaryInstructions;
}
} catch (TaxControlException e) {
Console.WriteLine(e.Message);
}
//import com.boondocks.taxcontrols.*;
try {
TaxControl tc = new TaxControl();
tc.setDataFilename("us.dat");
Tax t = tc.Taxes.get(emp.taxname[i]);
if (t.getAuxiliaryTag() != "" ) {
auxfield.visible = true;
auxfield.label = t.getAuxiliaryTag();
auxfield.tooltip = t.getAuxiliaryInstructions();
}
} catch (TaxControlException e) {
e.printStackTrace();
}