www.icetips.com  Icetips Utilities Documentation 5/9/2015    

Core Class: GetBitString

Previous  Top  Next  


Prototype: (Long pVariable),String

 

pVariableValue to construct bit string for.  This can be any integer variable.  Note that this method only accepts 32bit integers at this point.

 

ReturnsReturns a bit string with 32 characters.

 

This method takes any 32bit integer value, positive or negative and returns a 32bit binary string representing the integer value.  Note that bits are zero (0) based so the lowest bit is 0, next is 1 and so on.

 

Example:

ITC  ITCoreClass

Long

String(32)

Code

L = 8

Message('Binary code for ' & L & ' is: ' & ITC.GetBitString(L)

 

 

See also:

GetBit
SetBit

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getbinarystring_core.htm