Navigation:  Reference > Functions >

ConvertToRec()

Print this Topic Previous pageReturn to chapter overviewNext page

 

CREC(1)

 

PURPOSE

This function will return the given field as an R type (record or 4 byte integer) field.

 

PARTS

 

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

 

RETURN TYPE - R

The original field is not changed.

 

COMMENTS

An F type field cannot be converted to R; however, all others can.  If an L type field is converted, a .T. value will be converted to 1, a .F. to 0.

 

EXAMPLE

define myrecord type R

myrecord = CREC('100')

msg myrecord

// myrecord = 100

 

SEE ALSO

DATE()   Convert to Date CTOD() Convert to time CTOT()   TIME GET SET  Convert time to record TTOR()  Covert time to number TTOF() Convert time to string TTOC()

TIME() YEAR() Date Command  Date to Record DTOR()  Convert date to Character DTOC() Days in month DAY_IN_MONTH

Increment the Month INC_MONTH DayMonthyear DMY()  Month Day Year MDY()

Charicter of month CMNTH()  Charicter to day of week CDOW()

 

 


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