[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPCSI - Change Structure Identifier

GPCSI (ostrid, rstrid)

Purpose

Use GPCSI to change the identifier of a structure (called the original structure) to a specified structure identifier (called the resulting structure) This subroutine does not affect execute structure-type elements that reference the original structure.

If the identifier of the original structure is the same as the identifier of the resulting structure and the structure exists, then no action occurs. If the structure does not exist, however, then the graPHIGS API creates an empty structure with the identifier of the resulting structure.

If the original structure does not exist, then the graPHIGS API empties the resulting structure. If the original structure does exist, then the contents of the original structure replace the contents of the resulting structure and the graPHIGS API empties the original structure. If the original structure references the resulting structure, then the graPHIGS API issues an error message and does not perform the change.

At the completion of this subroutine call, the system deletes the original structure unless the original structure is the open structure, is referenced by any other structure or is associated to a view or workstation.

If the original structure is the open structure, then the graPHIGS API sets the current element pointer to zero. If the resulting structure is the open structure, then the graPHIGS API sets the current element pointer to point to the last element in the structure.

Parameters

ostrid -- specified by user, fullword integer

Original structure identifier.

rstrid -- specified by user, fullword integer

Resulting structure identifier.

Error Codes

12
FUNCTION REQUIRES STATE SSSL
129
ATTEMPTING TO HAVE THE RESULTING STRUCTURE EXECUTE ITSELF

Related Subroutines

GPARV
Associate Root with View
GPARW
Associate Root with Workstation
GPCEXS
Conditional Execute Structure
GPEST
Empty Structure
GPEXST
Execute Structure

RCP code

201347073 (X'0C005001')


[ Previous | Next | Contents | Glossary | Home | Search ]