convert float to String
Posted: Thu Nov 17, 2005 11:40
hi, I would like get into setText one float, scrollbar->getScrollerPosotion to chek one thing in my program. I tried casted
the error was cant convert 'float' to 'CEGUI::String'
how can I do it and what conversion are allow?
Code: Select all
CEGUI::String s;
s=(CEGUI::String)sb->getScrollPosition();
//and some lines after
scrollbar->setText(s);
the error was cant convert 'float' to 'CEGUI::String'
how can I do it and what conversion are allow?