How to append two strings together?

A discussion of the RUG3 support software and programming
Forum rules
To help everyone get the most out of the forums and keep this a friendly place containing useful information please keep in mind the following guidelines:

-Keep discussions professional and on topic.

-If you need immediate support please email While support forums are monitored they are not the primary means of getting support. However chances are that someone else may have/had your same question.

-Any personal attacks, insults, rants, bad language or abuse of support staff or other forum users will result in deletion of such posts and immediate termination of forum access.

-Smile and have a great day!

How to append two strings together?

Postby Cheryl » Wed Mar 12, 2014 9:19 am

A customer emailed in with a good question so I thought I would share it with the forum. The question was how to append two strings together in the RUG3.

The easiest way to do this is to use the 'SendStrToPort' module. If the string is to simply be used in the program (and never sent out a port) then the "Port #" field can be left blank and the "Output string max chars" should be specified to create space in memory for the new string. If the appended string is to be sent out a port then the "Port #" field should be specified and the "Output string max chars" can be set to 0 to preserve RAM (if the string is not to be used within the program) or specified to create space in memory for the string.

Posts: 9
Joined: Thu Feb 27, 2014 11:38 am

Return to RUG3

Who is online

Users browsing this forum: No registered users and 1 guest