Moonsoft Software Solutions

Inserting black spaces (Tab) via the code

Started 5 Dec 2013 · 1 reply

  1. moon_1312
    Hi,

    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".

    example:

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

    Any help would be greatly appreciated.
    Thanks,
    Jay
  2. Moonsoft support
    Hi,
    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

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket