خانه > lang > bchg 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar id vi ko ja ru zh zh_TW eo
قبلی  بعدی  ویرایش  تغییر نام  واگرد  Search  سرپرستی  
مستندات  
اخطار! این صفحه ترجمه نشده است.  مشاهده نسخه انگلیسی 
BChg
Value = BChg ( Number , Bit )

Returns Number with its Bitth bit inverted. The bit number of the least significant bit is 0.

The type of Number may be Byte, Short, Integer, or Long.

The valid range of Bit depends on the type of the Number argument.

Type of Number Range of Bit
Byte 0...7
Short 0...15
Integer 0...31
Long 0...63

The datatype of the return value is the datatype of Number.

خطاها

پیامتوضیحات
Type mismatch (6) The datatype of the Number argument is not valid.
Bad argument (20) The Bit argument is out of range.

مثال

PRINT 15, Bin(15, 16)
PRINT BChg(15, 1), Bin(BChg(15, 1), 16)

15      0000000000001111
13      0000000000001101

PRINT 13, Bin(13, 16)
PRINT BChg(13, 1), Bin(BChg(13, 1), 16)

13      0000000000001101
15      0000000000001111

همچنین مشاهده کنید

Bits Manipulation Functions, عملگرهاي منطقي