How to convert a standard C++ string to a XOD XString?

I’m facing “a simple” problem to convert traditional C++ string to XOD XString (or List<char>) thus emitValue can accept my string to be displayed. I’ve tried many ways but yet to get any solution:

image

This is the error message:
C:\Users\uum\AppData\Local\Temp\xod_temp_sketchbookT4JCBV\xod_1585878406923_sketch\xod_1585878406923_sketch.ino: In function ‘void xod::____trying_string_io::evaluate(xod::____trying_string_io::Context)’:
C:\Users\uum\AppData\Local\Temp\xod_temp_sketchbookT4JCBV\xod_1585878406923_sketch\xod_1585878406923_sketch.ino:1036:21: error: conversion from ‘const char [15]’ to non-scalar type ‘xod::XString {aka xod::List}’ requested

Any help is really appreciated.

format-number (and probably others) has example close to what you are trying to do. You might be able to find other examples that are closer to what you want.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.