We can also do it by adding the needed pointers-variables as parameters:
Code: Select all
Procedure.d zDec2Dms(Dec.d,*D.integer,*M.integer,*S.integer)
Seconds.d=Dec*3600
Degrees.d=Int(Seconds/3600)
Seconds-Degrees*3600
Minutes.i=Int(Seconds/60)
Seconds-Minutes*60
*D\i=Int(Degrees)
*M\i=Int(Minutes)
*S\i=Int(Seconds)
EndProcedure
However, my wish here is just about returning more than one variable from a simple procedure without complications like pointers, structures,....
so I could export D, M, S easily.
I see that Blueznl is seconding this wish. (thanks!)