11/13/2017 4:39 PM | |
Joined: 9/23/2005 Last visit: 4/29/2024 Posts: 4325 Rating: (1424)
|
Hi, In the STEP 7 V14 has several instructions to strings manipulation. For example, FIND finds characters in a character strings and REPLACE replaces part of a string with another string based in fixed position. Combining FIND, REPLACE, LEAN and While instructions it is possible to build a block that substitutes a specified contends of a string for other one. In the follow sample program, the matter “456” is searched in the original string “12345678901234567890” and exchanged for “abc” so that the result is “123aabc7890123abc7890” AttachmentFindReplace.zip (548 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to3 thankful Users |
Follow us on