Sorry if this suggest was post in the past, but i don't find.

Code: Select all
Structure DoubleCoord
C1.COORD
C2.COORD
EndStructure
Structure Passer
StructureUnion
StrP.DoubleCoord
QuaP.q
EndStructureUnion
EndStructure
Procedure.q GetCoords( X.w, Y.w )
Protected OutCoords.Passer ; define an internal Passer
OutCoords\StrP\C1\x = X + 100 ; fill the structured Part
OutCoords\StrP\C1\y = Y - 100
OutCoords\StrP\C2\x = X - 100
OutCoords\StrP\C2\y = Y + 100
ProcedureReturn OutCoords\QuaP ; return the quad Part
EndProcedure
Define TestCoords.Passer
TestCoords\QuaP = GetCoords( 200, 500 ) ; fetch a quad
Debug "C1\x = " + Str( TestCoords\StrP\C1\x ) ; debug the structured content
Debug "C1\y = " + Str( TestCoords\StrP\C1\y )
Debug "C2\x = " + Str( TestCoords\StrP\C2\x )
Debug "C2\y = " + Str( TestCoords\StrP\C2\y )
Dräc wrote:Oh! I was’nt aware that you are on the PB development team, Kaeru Gaman![]()
![]()