Editing Button Text from Master, Carriage Return?
jabramson
Junior Member
I have a script that updates the button text on a TP. How do I do a carriage return? This is non-unicode text (works with unicode, but would need to translate).
Comments
-
The NEW LINE character is | , that is called a PIPE, and it is a shifted backslash \
-
Perfect, thanks.
-
I found this out. It would display fine on TPDesign4 when I wrote "ER Nursing Lab | Floor Camera" as a display.
I had to change it to "ER Nursing Lab-Floor Camera" because it kept inserting a newline. "Huh. That's funny."
Why don't they just accept the hex $0D? -
I found this out. It would display fine on TPDesign4 when I wrote "ER Nursing Lab | Floor Camera" as a display.
I had to change it to "ER Nursing Lab-Floor Camera" because it kept inserting a newline. "Huh. That's funny."
Why don't they just accept the hex $0D?
They do, you just have follow it with a hex $0A, aka a line feed. i.e. "'Line 1',$0D,$0A,'Line 2'" If you want a pipe character I assume there's some way to escape one but I don't know what that is off the top of my head.
-Ryan
//Isn't it fun how there really is no standard between various operating systems/programs what character(s) you need to get a new line?
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums