CalcBuilder Forum

Inserting black spaces (Tab) via the code

User moon_1312 2013-12-05 18:06:21


I have a calculator with multiple YES/NO fields, if the field is selected the output layout restates the field name followed by the calculation. However it is not pleasing to the see as the length of the fields vary.

I would like to insert a "tab" or "consistent spaces" between field name and the calculation. I have experimented by inserting "\t" in the code, with no luck. The program seems to completely ignore "\t".


if ($a == 'Y') $label1 = "Product name: \t" . ceil ($calculation1) ;

Any help would be greatly appreciated.

Moonsoft support 2013-12-05 18:36:03

please note the output is built in html, so you could print at the output any layout able to arrange your results as needed, like for ex, a standard table.

You can place ##labelx## and ##calculationx## inside the cells to ensure they keep the alignment with other results.

Hope this helps, regards

Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!

Create dynamic calculators

Buy now!