Page 1 of 1

How to add Tab (ASCII hex09) character into string data ?

Posted: Sat Apr 12, 2025 12:11 am
by Jiri
Maybe simple question:
- I need to programatically add some special characters into string, filled in LANSA RDMLX logic. For example, a tab delimiter, which is hex 09 in ASCII. It can be probably use some conversion intrinsic function, but the description of intrinsic functions is not very clear (one of worst parts of LANSA documentation).
Can anybody provide example for me?

Re: How to add Tab (ASCII hex09) character into string data ?

Posted: Mon Apr 14, 2025 1:43 pm
by JamesDuignan
Hi Jiri,

If your application is VL Web you can use (9).asUnicode string, otherwise you can use (9).asChar


Here is an example in a form:

Code: Select all

Function Options(*DIRECT)
Begin_Com Role(*EXTENDS #PRIM_FORM) Clientwidth(484) Clientheight(301) Componentversion(2)

Define_Com Class(#PRIM_LABL) Name(#label) Parent(#COM_OWNER) Displayposition(1) Tabposition(1) Tabstop(False) Height(215) Width(455)

Evtroutine Handling(#COM_OWNER.Initialize)
#label := 'This text requires a tab right after this:' + (9).AsChar + '<- there it is!' + (9).AsChar + 'And Another'
Endroutine

End_Com
Cheers,
James

Re: How to add Tab (ASCII hex09) character into string data ?

Posted: Tue Apr 15, 2025 12:15 am
by Jiri
Thanks, works fine. Unfortunately, this a very simple solution is not clear in Intrinsic functions topisc.