Jump to content

Recommended Posts

  • MVP 2023
Posted

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
  • 4 weeks later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.