 |
| Converting a decimal string to an integer |
User rating: 0/10 (0 votes) | | |
|
 |
 |
Versions: click to open |
 |
|
 |
 |
 |
DECLARE INTEGER StrToInt IN Shlwapi STRING lpSrc
DECLARE INTEGER StrToLong IN Shlwapi STRING lpSrc
= _show("0")
= _show("1")
= _show("abc")
= _show("54")
= _show("0x100")
= _show("2001")
= _show("2 * 3")
= _show("3.14")
PROCEDURE _show(cSrc)
? cSrc, StrToInt(cSrc), VAL(cSrc)
|
 |
User rating: 0/10 (0 votes) | | | 296 bytes Created: 2001-08-15 12:00:00 Modified: 2012-09-25 12:36:49 Visits in 7 days: 80 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| My comment: |
 |
| Native TryParse in C# works a few time faster than the StrToIntEx. But the latter"s flags are less complex that the NumberStyles flags. |
 |
 |
| Word Index links for this example: |
 |
|
|
 |
 |
| Translate this page: |
 |
|