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?
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