Livecode Wiki
Advertisement

Specifies whether numbers with a leading zero are assumed to be octal numbers.Syntax:

set the convertOctals to {true | false}

Examples:

set the convertOctals to true

Use the convertOctals property to make it easier to work with octal numbers.

If the convertOctals property is set to true, numbers that start with a zero are treated as octal (base 8) numbers, instead of decimal (base 10). If the convertOctals is false, all numbers (except hexadecimal numbers, which start with 0x) are treated as decimal.

Since the convertOctals is a local property, its value is reset to false when the current handler finishes executing. It retains its value only for the current handler, and setting it in one handler does not affect its value in other handlers it calls.

Advertisement