Uniface on GitHub
Fixes and Updates
Author: firstname.lastname@example.org (lammersma)
Is there a way to get a 'tab' in a text string?
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.
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.
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
In Uniface version 9 you also can use the Proc function $string. For example:
Hope this helps.
Sorry for the late respons. The $string works perfect. No more $tometa...
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.
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.
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.
I wanted to create a tab seperated list. For example, to mail it to someone who wants to past it into a spreadsheet.
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.
© 2021 Uniface Privacy & Cookies | Privacy Statement | Legal