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?
How to add Tab (ASCII hex09) character into string data ?
-
JamesDuignan
- Posts: 85
- Joined: Thu Nov 26, 2015 1:43 pm
Re: How to add Tab (ASCII hex09) character into string data ?
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:
Cheers,
James
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_ComJames
Re: How to add Tab (ASCII hex09) character into string data ?
Thanks, works fine. Unfortunately, this a very simple solution is not clear in Intrinsic functions topisc.