help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TBits.SetOn

Turn a particular bit on.

Declaration

Source position: classesh.inc line 278

public procedure TBits.SetOn(

  Bit: LongInt

);

Description

SetOn turns on the bit at position bit, i.e. sets it to 1. If bit is at a position bigger than the current size, the collection is expanded to the required size using Grow.

Errors

If bit is larger than the maximum allowed bits array size or is negative, an EBitsError exception is raised.

See also

Bits

  

Access to all bits in the array.

Clear

  

Clears a particular bit.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505