TLex question
| Tue, 2007-02-13 09:38 | |
|
Hi,
I have a descriptor which contains the following: Code: _LIT8(KDescriptor, "$value=12"); I want to extract the value with the following code: Code: TLex8 lexer(KDescriptor); But this does not work. value stays 0 after the last statement. Can anyone tell me what's wrong?do { lexer.Inc(); } while((lexer.Peek() != lexer.Eos()) && (lexer.Peek() != '=')); TInt value = 0; lexer.Val(value); regards Martin |
|






Forum posts: 683
Edit: This might also help you out.
Forum posts: 63