add tab to a string
kioog
✭✭
hello all,
i want to write some data on the screen using tpwrite
i want to add "tabs" between the data so the data is displayed like colums on the screen.
but i don't find how i can add a tab to a string
any help?
0
Comments
-
Try this:TPWrite "Data19"+"Data29"+"Data39";You can append control characters to string literals with "XX", where XX is the hex value of the control character.Russell Drown0
-
hello,I tried this code, but it is not working on real robotit is writing a [] "square box" instead of a tabeven if i try other codes like 10 or 8 it is always write the square box characteranybody else have the same experiencei am using 5.11.02.00.20030
-
updatei just tried it in robotstudio on a virtual flexpendant, there it seems to workbut not on a real controller !!!!!0
-
Yes it looks like the RAPID UI instructions cannot cope with unprintable characters, this syntax must be intended for use with the instructions lumped into the category File and Serial Channel Handling. Looks like you can only do padding with spaces, it probably wouldn't be so hard to write a function that would do that.
Russell Drown0 -
Hi,padding the strings with spaces I already tried earlier, this don't work with the listview,the character width is not the same for all characters, it is using true font i guess.for example : ob128 is longer then la411, because the "l" character is with small width.with tpwrite the characters are aligned vertically, in the listview not, hope they will add the TAB functionality in the future0
Categories
- All Categories
- 5.5K RobotStudio
- 397 UpFeed
- 18 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 319 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 804 RAPID Programming
- 4 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings