Using Text Box and Strings - Forum

Forum Navigation
You need to log in to create posts and topics.

Using Text Box and Strings

I still an having issues wrapping my head around strings and positioning them.

Lets say I want to create a list of items and its going to have line 1 as a header.   I want line one to have     Same     Opposite     1     2    3

as i enter data I want to populate line 2 with a string and then line 3 with a string of something that will line up with it.

How to you ad lines under another line?    It will look like a chart at the end but I dont want to use a chart program or plugin for this.

 

ALSO......

 

How do you add strings to end of lines.   Example....."quick brown fox" and I want to add "Jumped" at the end of this line?  How.

 

Thank you

@no1g8tor96

How do you add strings to end of lines. Example....."quick brown fox" and I want to add "Jumped" at the end of this line? How.

SetVar "[LineX]" "quick brown fox"
SetVar "[LineX]" "[LineX] Jumped"

How to you ad lines under another line?

SetVar "[LineY]" "abcdefghij"
SetVar "[LineY]" "[LineY][#13][#10]xyz"

 

a) [#13][#10] is the code for CRLF (carriage return, line feed)

b) The resulting content of [LineY] will look like ...

abcdefghij
xyz

... when viewed in a TextBox ... or when saved to a .txt file and viewed using notepad.exe

I still an having issues wrapping my head around strings and positioning them.

This is only possible when using mono-spaced fonts (i.e. when fat characters like M and W take up the same width as thin characters like I or 1

You may have some success using the tab character [#9] to jump from tab position to Tab position, but it can get very complicated.

luishp and Vadim have reacted to this post.
luishpVadim

Thank you so much.  I really appreciate the help.  Will start testing today.  Im coming from another language and wrapping my hear around this one.

I really like it....simple....but need to feel my way around.