StringScanner.ScanTypedToken Function
Syntax
Token_Found as C = ScanTypedToken as C([kind as c])
Arguments
- Token_Found
A new scanner object that supports operations against Text.
- kind
Optional. Default = next token found. The type of the next token to find. See <StringScanner>.ScanToToken() for token types.
Description
Return next token in form of [<Kind>:<Token>].
Discussion
The <StringScanner>.ScanTypedToken() function returns the next Token_Found in the format Kind : Token.
Example
dim t as C
t = <<%txt%
result[1] = foo( x + y , "Some text" ) .or. (lookfor = .F.) .or. ( date()= {10/10/2005}
complex[1].subelement[1].property
%txt%
scanner = stringscanner.create(t)
? scanner.scanover(5)
= "[1] ="
? scanner.ScanTypedToken()
= "F: foo"See Also