Show/Hide Toolbars

XSharp

The -vo12 option enables Clipper compatible integer divisions.

Syntax

-vo12[+|-]

Arguments

+ | - Specifying +, or just -vo12, directs the compiler to emit code that performs Clipper-compatible integer divisions.

Remarks

When The -vo12 option is enabled and both operands of The - (division) operator are integral values, both operands are converted to USUAL, and the return type is USUAL. The return value contained in the USUAL is:

 

INT64 (UsualType() == 22), if one or both operands are greater than Int32.MaxValue and the remainder of the division is zero

INT (UsualType() == 1), if one or both operands are INT or a smaller integral type and the remainder of the division is zero

FLOAT (UsualType() == 3), if one or both operands are INT or a smaller integral type and the remainder of the division is not zero

 

The -vo12 option is enabled in projects created by the Transporter if the Compiler->Clipper Compatiblity->Integer Divisions option was enabled for the project in Visual Objects.

To set this compiler option in the Visual Studio development environment:

 

1.Open the project's Properties page.

2.Click the Dialect tab.

3.Change the value.

4.Click here to see the property page