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

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
User avatar
Jiri
Posts: 52
Joined: Thu Feb 11, 2016 11:41 pm

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

Post 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?
JamesDuignan
Posts: 85
Joined: Thu Nov 26, 2015 1:43 pm

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

Post 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
User avatar
Jiri
Posts: 52
Joined: Thu Feb 11, 2016 11:41 pm

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

Post by Jiri »

Thanks, works fine. Unfortunately, this a very simple solution is not clear in Intrinsic functions topisc.
Post Reply