Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

About TPWrite concatenations

OscarGSal
OscarGSal
edited October 2021 in RobotStudio
Hello from Spain...

I want to write a text to a flexpendant, but, i need to concatenate a text + numeric Variable + text + numeric variable in a single line. 

I Know how to concatenate in a single line, text + num like this...

TPWrite "ROBOT 1 ";
TPWrite "";

TPWrite "ALTURA ------ "\Num:=AltBobR1;

The result will be something like that:

ROBOT 1

ALTURA ------  1000

But I need to get this result:

                             R1        R2

ALTURA ------  1000 - 1500


Numeric value below text R1 is AltBobR1 variable and Numeric value below text R2 is AltBobR2 variable.


Can someone guide me how to achieve this result?


Answers