View Single Post
  #1  
Old 04-12-2016
Lucas Klein
Guest
 
Posts: n/a
Downloads: 0
Uploads: 0
Default text to node type

Dear all,

I have a text in a "static" component in my GUI, i get it text as below:

treenode obj = node("@/panel/no1",c);
string q17 = getviewtext(obj);

if I print this string, that is the content

node("Queue17", model())

Let's consider that this "Queue17" already exists in my model. I would like to attribuite this string into a treenode, to refer the Queue17 path as the code below:

treenode que17 = node("Queue17", model()) ;

but using the string as reference to the text:

treenode que17 = q17;

How could I convert the string type to node?
Thanks in advance,
Lucas Klein.
Reply With Quote