72
Views
3
Comments
Solved
Align String Text to Right
Application Type
Traditional Web

Hi All,


I want to set format text string to right align

Example:

I have Text String with 8 Index character, 1-6 Index fill "BATMAN", 7-8 Index fill free space or "  "

And I want change text to like this


Thanks,

Kane

2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Kane,

For the mentioned use case. You can use the in-built function called FormatText()


Based on the mentioned example, the expression value would be

FormatText(inputTextVar, 8, 8, True, "*")

Note: Replace the * with space character


See this sample screen: PaddingStringTask



I hope this helps you!


Kind regards,

Benjith Sam

2021-09-21 09-26-31
Aadhavan Shanmugam

Hi Kane,

For this, you select your container,

Click on below brush icon in top right corner of properties and after choose your align 

Thanks, Aadhavan S

2020-11-13 06-20-57
Kane Loony

Hi,

Not like that lol, what I mean is a text string to create a text file, not in UI


Thanks, Kane

2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Kane,

For the mentioned use case. You can use the in-built function called FormatText()


Based on the mentioned example, the expression value would be

FormatText(inputTextVar, 8, 8, True, "*")

Note: Replace the * with space character


See this sample screen: PaddingStringTask



I hope this helps you!


Kind regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.