Hi Jorge,

jorge ivan poot diaz schrieb:
thanks,

buf.charAt (nLen - 1): this variable has a string as '1' or '2', '3'...'9'
as it could change to int, any ideas, please help!

I've done this:
int ty = buf.charAt(nLen - 1);
built well, but the result is not as expected.

You should post what you get and what you expect. But perhaps the following hints might already solve your problem.

Have a look at stringToDouble in main/sal/rtl/source/math.cxx to learn about converting to number.

Or

charAt returns a sal_Unicode. Searching the definition for sal_unicode you come to main/sal/inc/sal/types.h with leads you to wchar_t. So search in internet for "wchar_t to int" to get an idea what to do.

Kind regards
Regina


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to