Skip to content

MiscellaneousTag

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

Example

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

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

value = object.

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