Jump to content

Concatenating Strings


Joe Tauser

Recommended Posts

  • MVP 2023

I ran face-on into an application where I wanted to concatenate the time and date into one string.  The RTC to ASCII function in the examples considers every permutation of Date OR Time, but not both.

I tried following my own advice and using the Insert String function but it didn't work the way I thought it did.  I studied the RTC to ASCII example and realized the best way to manipulate strings is to make use of buffers, controlling exactly where characters land using the Copy Tag to Buffer, Fill Buffer, and Copy Buffer to tag functions.

The thing that worked best for me was to start from scratch and write a generic Concatenate function that takes two strings as arguments as well as the number of spaces wanted between the strings.  I only need one space, but this could easily be modified to pass the separating character to it.  I'll leave that as an exercise to another.

Enjoy.

Joe T. 

Concat.ulle

  • Like 4
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...