Navigation:  Reference > Functions >

ConvertToByte()

Print this Topic Previous pageReturn to chapter overviewNext page

 

CBYT(1)

 

PURPOSE

This function will return the given field as a B type (1 byte integer) field.

 

PARTS

 

1 f/c/eRequired - The field to be converted to B type.

 

RETURN TYPE - B

The original field is not changed.

 

COMMENTS

F, P, T, and D type fields cannot be converted to B; however, all others can (including A type fields).  If an L type field is converted, a .T. value will be converted to 1, a .F. to 0.  If the value of the field to be converted is larger than the maximum value of a B type field (255), the result will be truncated and will not be accurate.

 

NOTE:  This is the same as using the ASC() when converting an A type character.

 

 


Page url: http://www.cassoftware.com/tas/manual/converttobyte().htm