Double quotes in a string in InTouch

ettikudiappan

Member
Join Date
Apr 2002
Location
Singapore
Posts
131
Hi

I want add a double quote in a string without using the function
StringChar(34). Is it possible? I have dozens of strings to be sent to an external application and each string contains atleast six double quotes. This makes using StringChar function a big mess. The code also is currently unreadable.
 
I presume that you're using StringChar(34) in a script. I can think of two ways:

1.This only works in scripts: At the start of a script, define a local variable and assign StringChar(34) to it. Then use that local variable as needed.

2. This works everywhere: Why not define a Memory Message tag that's retenitive and put the double quote in it as the initial value? Name the tag QQ. Then use QQ where a StringChar(34) is needed, anywhere you can put a tag name.

Dave
 

Similar Topics

Hi All, I'm keep getting double quotes in between selections rather than the beginning and the end. Here's the script and please help to find...
Replies
7
Views
798
Hello All, Im trying to pass an argument to a stored procedure in wonderware. Someone else is doing the data base, and im required to do a...
Replies
0
Views
1,979
What is the simples way to do a double click of a button in a ladder logic. New here and I hope this has not been asked before.
Replies
22
Views
531
Hi! I am using a TM200CE40T PLC from Schneider to write data over Modbus. I have used Memory words (%MW) before using the Write variable...
Replies
1
Views
533
Hello All, IÂ’m starting a new project where the plc is connected throught LAN with external software which write some data on PLC db, obviously...
Replies
1
Views
510
Back
Top Bottom