DBgradisIdFromPlan

Top  Previous  Next

Gradis-ID of a plan determine.

A trading is given for a plan. For this object a gradis compatible ID is generated. This exists of two 16 bits of upright figures. The first number identifies the plan, the second one the segment in which the plan is. Because it concerns 16-bit figures, the number of the Handles for which such an ID can be generated is limited. The gradis compatible IDs will award only with her use and are by the following calls of the same data bank not the same. The ID 0 will not award. If one of both 16-bit figures 0 is, the number of the possible IDs is exhausted. With the extinguishing of an object his ID is released again.

Parametre

flat (PPLANS) [IN]

Act of the plan to which a Gradis-ID is required.

Result

(GRADISSEGMENTID) [OUT]

Is the Gradis-ID generated to this plan. This is a record with the fields objID and segID. If is one of these fields 0, could be awarded no other ID. The Gradis-ID identifies the plan unambiguously.

Declaration

#include "database.h"

 

GRADISSEGMENTID DLLENTRY DBgradisIdFromPlan (

PPLANS flat

);

Related functions

DBgradisIdFromElement

DBgradisIdFromObject

DBgradisIdFromPoint

DBgradisIdFromSegment