Home AMX User Forum NetLinx Studio
Options

line feed into _WC function

hi, is possible insert a line feed into a string pass to _wc function. i try with different combination but notihing...

_WC('hello world')

how insert a line feed after hello?

thank's

Comments

  • Options
    rfletcherrfletcher Posts: 217
    Daniel79 wrote: »
    hi, is possible insert a line feed into a string pass to _wc function. i try with different combination but notihing...

    _WC('hello world')

    how insert a line feed after hello?

    thank's

    I'd think _WC("'hello world',$0A") should work
  • Options
    no.. doesn't work i try different combination ... , i think is a _WC function limit
    this function alow only a char string and return a widechar
  • Options
    rfletcherrfletcher Posts: 217
    Daniel79 wrote: »
    no.. doesn't work i try different combination ... , i think is a _WC function limit
    this function alow only a char string and return a widechar

    Can you use ch_to_wc() instead of _wc? Because _wc does only work with string literals according to the documentation. Alternatively, maybe try \n where you want a linefeed? That would be the escape for a line feed in C, but I can't seem to find the documentation for what escape sequences are in NetLinx for some reason.
Sign In or Register to comment.