Hello,
I inform you about a new instruction added recently in PcVue Scada Basic: REPLACE.
It's available since version 11.1 Build 06019
Here is the documentation (will appear officialy in 11.2)
* Syntax: OutputString = REPLACE(InputString, OldSubstring, NewSubstring[, CaseSensitive[, OccurrenceNumber]]); Where: InputString: a string containing any OldSubstring to be replaced, limited to 32000 characters. Required OldSubstring: a substring found in InputString to be substituted by NewSubstring, limited to 2047 characters. Required NewSubstring: a substring used to replace OldSubstring, limited to 2047 characters. Required CaseSensitive: an integer to search OldSubstring in InputString ignoring case when 0. Optional OccurrenceNumber: an integer to only replace the first OccurenceNumberth match with OldSubstring, all occurrences when <=0 (by default). Optional OutputString: a copy of InputString containing NewSubstring and OldSubstring, or NewSubstring only
Thank you Jin Chun


