*pointerset()

Sets the initial value of a pointer.

Syntax

*pointerset (pointer number, pointer, value)

Type

HyperMesh Template Command

Inputs

pointer number
Value from pointer1 to pointer10 indicating which of the 10 possible pointers should be set to thevalue parameter.
pointer
The pointer to the data object to be accessed. Only certain data types may use pointers. These are described in the template commands in which they are valid.
value
The value of the pointer.

Example

For example, to output all the dictionary entries for a component, the following commands could be used while in the component block:

*counterset(counter1,0)
*loopif([counter1 != dictionarymax])
   *pointerset(pointer1,dictionary,counter1)
   *field(string,pointer1.name,0)
   *field(integer,pointer1.type,0)
   *field(string,pointer1.string,0)
   *field(real,pointer1.value,8)
   *counterinc(counter1)
*endloop()