Author Topic: Clear a string array in RSLogix 5000  (Read 3609 times)

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Clear a string array in RSLogix 5000
« on: December 16, 2019, 02:52:59 PM »
How do you clear an entire string array in RSLogix 5000 without creating another empty/null string array? STR_ARRAY[10]

I currently use FAL to do the job, but wondering if there is another way.
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Clear a string array in RSLogix 5000
« Reply #1 on: December 16, 2019, 03:03:03 PM »
silly me, FLL can do it too
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Phrog30

  • Guest
Re: Clear a string array in RSLogix 5000
« Reply #2 on: December 16, 2019, 03:29:36 PM »
FLL can also clear structures/UDTs.  About the only thing they can't do is BOOL arrays.

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Clear a string array in RSLogix 5000
« Reply #3 on: December 16, 2019, 04:09:33 PM »
Someone was using a complicated approach that got me going. Probably it was carried over from 500
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Clear a string array in RSLogix 5000
« Reply #4 on: December 16, 2019, 04:13:04 PM »
much simpler:
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================