Navigation:  Reference > Commands >

Pointer Set

Print this Topic Previous pageReturn to chapter overviewNext page

 

You use this command to get the internal pointer value for the field.

 

 

pointer_field -> target_field

 

 pointer_field - fn/v Required - The receiving field.  The internal pointer value for target_field will be saved into this field.  If you are saving the pointer for a non-array field it may be saved into either a type F or P field.  However, if the pointer is for an array field, the result must be saved into a type P field or an inaccurate value will be saved.

 

target_field - fn/v Required - The field being pointed at.

 

 

COMMENTS

The difference in receiving fields comes from the way fields are accessed in TAS Professional.  An F type pointer keeps track of the field type and address in the field list buffer.  Only 5 bytes are required for this type of field.  The P type pointer uses the actual location in memory and keeps track of the type, size, decimal characters, etc. of the field being pointed to.  The P type is necessary when pointing to an array field since the array value is not kept in an F type pointer.  For more information about the layout, size, and specifications of TAS Professional fields please see System Specification - Field Types.

 

Through the use of this command you can access fields indirectly either in a TAS Professional program or an external program.

 

NOTE:  You must keep at least one space on both sides of the pointer command symbol.

 

 


Page url: http://www.cassoftware.com/tas/manual/pointerset.htm