I need to send a long XML-style script command to a Server via an open socket (write ... to socket Server:port). The communication with the server is presumed to be encoded in UTF-8.
Here is an example:
Code: Select all
CG 1 ADD 0 "TEMPLATE" 1 "<templateData><componentData id=\"f0\"><data id=\"text\" value=\"NAME\"></data></componentData><componentData id=\"f1\"><data id=\"text\" value=\"FUNCTION\"></data></componentData></templateData>"
In the example are three string-Variables, which must be dynamically selectable (via Combo box, selectable text fields or whatever). These are TEMPLATE (for a Flash-Template), NAME and FUNCTION.
I tried to build the whole command-string with put "..." & TEMPLATE & "..." & NAME & "..." & FUNCTION & "..." to a string-variable, but that doesn't work. The reason for that are the many quotes in the command-string I guess... I don't know.
Any idea to solve that Problem??
Greets,
Martin