Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Conversion from descriptor into a TInt?

1 replies · 1,983 views · Started 24 March 2003

How can I convert descriptor into an integer when I'm sure it contains only numerical data?

It's easy to do it the other way around just by using the 'Num(TInt aValue)' method in the TDes16 interface, but how on earth is this done?

Like this:
[code:1]
TLex lex(_L("123"));
TInt val;
lex.Val(val);
[/code:1]

Best regards,
Teemu Moilanen