Home AMX User Forum NetLinx Studio

What command would do this

In my previous life i would use something like "recstring+=data" to append the contents of data to recstring. What is the equivalent command in netlinx i have tried the following as a test that should just keep appending the same string and increase the string length

onktrabuffer="onktrabuffer,("'S!6PWR00',$0D,$0A,'E'")" // test line

Comments

  • a_riot42a_riot42 Posts: 1,624
    xrmichael wrote: »
    In my previous life i would use something like "recstring+=data" to append the contents of data to recstring. What is the equivalent command in netlinx i have tried the following as a test that should just keep appending the same string and increase the string length

    onktrabuffer="onktrabuffer,("'S!6PWR00',$0D,$0A,'E'")" // test line


    Concatenation is done with the comma operator as opposed to Java and other languages where you can use an overloaded +. The code you posted uses a variable as well as constant strings so it should look like this:

    onktrabuffer="onktrabuffer, '(S!6PWR00',$0D,$0A,'E)' "
  • Thanks

    Thats sorted it, the mist is slowly clearing.
  • SUDO Make me a sandwich. http://xkcd.com/149/
  • PhreaKPhreaK Posts: 966
    SUDO Make me a sandwich. http://xkcd.com/149/

    Ha ha, gold.
Sign In or Register to comment.