This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cubloc:modifiers_expressing_numbers:index [2023/07/06 05:32] COMFILE Technology [Bit and Byte Modifiers] |
cubloc:modifiers_expressing_numbers:index [2023/07/06 05:34] (current) COMFILE Technology [Bit and Byte Modifiers] |
||
---|---|---|---|
Line 10: | Line 10: | ||
**NOTE:** These bit, nibble, and byte modifiers is not supported for the ''Single'' type, but are supported for the ''Integer'' and ''Long'' data types. | **NOTE:** These bit, nibble, and byte modifiers is not supported for the ''Single'' type, but are supported for the ''Integer'' and ''Long'' data types. | ||
- | **NOTE:** These bit, nibble, and byte modifiers is not supported for the Ladder Logic data type. | + | **NOTE:** These bit, nibble, and byte modifiers is not supported for the Ladder Logic sharing variable. |
<code> | <code> | ||
- | _D(10).byte ' No supported | + | _D(10).byte0 ' No supported |
+ | |||
+ | Dim A As Integer | ||
+ | Dim B As Byte | ||
+ | A = _D(10) | ||
+ | B = A.byte0 ' Move it like this | ||
</code> | </code> | ||
===== Bit ===== | ===== Bit ===== |