Hi,
Any ideas about how i can display a string stored in a variable to a text entry input, that is: i have
Char_t a = '1';
Can i do this: fText->AddText(a);
Well, i got an error! Suggestions please!
Hi,
Any ideas about how i can display a string stored in a variable to a text entry input, that is: i have
Char_t a = '1';
Can i do this: fText->AddText(a);
Well, i got an error! Suggestions please!
Hi,
what is fText? Usually ROOT’s methods expect a string (const char*), so try this:
const char* a="i";
fText->AddText(a);
If you really only have the char then this should work:
char text[2]={0};
char a="i";
text[0]=a;
fText->AddText(text);
Cheers, Axel.
Hi Axel,
I used your first suggestion and it does what i wanted.
Thank you very much.