Tab in text string

Author: lammersma@hotmail.com (lammersma)

Hi,

Is there a way to get a 'tab' in a text string?

TIA,

Peter

10 Comments

  1. Hi,

    Forget this one, please. The answer is: $tometa(9). Example: $concat(string1, $tometa(9), string2)

    There must be more scientific methods to do this, but this will do the job.

    kind regards,

    Peter

     


    Author: lammersma (lammersma@hotmail.com)
  2. Hi,

    what's the point of using $tometa for such a simple character as tab? Do you use it for other characters as well?

    As for me, I use for "A" just "A" and for tab just tab. I do not remember myself using $tometa(9) for tab character. Even while importing data from some spreadsheet (like excel) where columns are separated by tab, I just replace tab with sublist separator (something like !;). I have seen no problem with this so far.

    Zdenek


    Author: sochaz (zdenek.socha@fullsys.cz)
  3. Hi Zdenek,

    the only reason to use $tometa(9) is the visibility in (even printed) proc listings.

    Otherwise you start things like:

    v_separator = "  " ; this is a TAB

    Success, Uli


    Author: ulrich-merkel (ulrichmerkel@web.de)
  4. Peter,

    In Uniface version 9 you also can use the Proc function $string. For example:

    • myVar = $concat(string1, $string("&uTAB;"), string2)
    • myVar = $string("Item1&uTAB;Item2")

    Hope this helps.

    Best regards,
    Daniel

     


    Author: diseli (daniel.iseli@uniface.com)
  5. Hi Daniel,

    Sorry for the late respons. The $string works perfect. No more $tometa...

    Kind regards,

    Peter


    Author: lammersma (lammersma@hotmail.com)
  6. Hello,

    just wanted to thank you all for info, mainly Daniel for poiting out the $string function... we have recently realized that $tometa(160) stopped working in Uniface 9 (tested in Uniface 9.3 and 9.5) - it should return unbreakable space (or something like that :)) but in Uniface9 it returns some garbage... we have tried $string(" ") instead and it seems to work fine.

    Kind regards,
    Zden?k Socha


    Author: sochaz (zdenek.socha@fullsys.cz)
  7. NB: When you want to make a large tab separated list you may want to build a Uniface list first, and when done replace all gold semicolons with tabs. Do everything in variable and only put it in a field when done. This will make it faster.


    Author: Theo Neeskens (tneeskens@itblockz.nl)
  8. Hi Peter,

    just QUICK-ZOOM the proccode-field

    The TAB will become just an ordinary key:
    you press TAB  => TAB will become a character in your text.

    Success, Uli


    Author: ulrich-merkel (ulrichmerkel@web.de)
  9. Hi Uli,

    I wanted to create a tab seperated list. For example, to mail it to someone who wants to past it into a spreadsheet.

    Kind regards,

    Peter


    Author: lammersma (lammersma@hotmail.com)
  10. Hi Peter,

    today, I will publish some enhancements on lists in the dITo area of my homepage.
    Best is to use the Sitemap to go straight to the dIToLis page.

    One feature is "joinitems", which concatenates the items of a list plus a separator you can specify.

    If you (or anyone else) have a need for additional list manipulations,
    please tell me; next release of  dIToLis may include these.

    Success, Uli

     


    Author: ulrich-merkel (ulrichmerkel@web.de)