[Solved] Put " in your driver als char

Home Forums V-Control General [Solved] Put " in your driver als char

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1027
    JonasStade
    Participant

    Hello,

    I have to comunicate with xml code with a Device, but know i have to put in some “” Chars, to send them to the device. The problem is, that the “” are reserved for the driver and to put a chr() for every ” would be a mess, so the question is, is there a better workaround to do this?

    For example, i have to send something like <DestMgr id=”2″>

    Best regards,
    Jonas

    • This topic was modified 4 years, 4 months ago by Dierk Walter.
    #1028
    Dierk
    Participant

    Hi Jonas,

    the answer is very simple. Use 4 x ” for each ”
    Scriptresult = "<DestMgr id=""""2"""">"

    #1029
    Dierk
    Participant

    It should be also possible to use a variable for this

    dim M as string

    m = """"""

    Scriptresult = "<DestMgr id=M+2+M>"

    I did not test this and I think it’s not a much better solution then the first one.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Scroll to top