Jump to content

Recommended Posts

  • MVP 2023
Posted

I've got a problem that I need to perform some manipulations with an ASCII string, but it's possible there are NULL characters (0) in the string. The NULL character may only be one of the 2 bytes in one of the MIs that are part of the vector. I need to check the vector for NULL characters and replace them with H-20 (space). Is there a way to do this?

  • MVP 2023
Posted

Have you tried Strings->Replace StrA with StrB?

 

You'll have to set MI's with power-up values of 00h and 20h, There's no parameter for the string length in the function block, so I'd be careful with the number of times to replace value.

 

Joe T.

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.